aboutsummaryrefslogtreecommitdiff
path: root/procps/pstree.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* libbb: factor out code which queries screen widthDenys Vlasenko2015-10-231-1/+1
| | | | | | | | | | | | | | | | function old new delta get_terminal_width - 17 +17 stty_main 1196 1197 +1 pstree_main 321 319 -2 ls_main 735 731 -4 watch_main 232 225 -7 bb_progress_update 714 706 -8 ps_main 555 543 -12 run_applet_and_exit 708 695 -13 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/6 up/down: 18/-46) Total: -28 byte Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* pstree: fix theoretically unsafe codeDenys Vlasenko2013-06-281-1/+1
| | | | | | In practice, p->comm is never long enough to trigger the bug, but still. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* pstree: stop truncating thread namesMike Frysinger2013-06-191-3/+10
| | | | | | | | | This also fixes a minor buffer overflow when displaying threads as add_proc() only expects COMM_LEN bytes, but we give it one more than that. Reported-by: Dag Wieers <dag@wieers.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* *: remove "Options:" string from help textsDenys Vlasenko2011-06-051-1/+0
| | | | | | | function old new delta packed_usage 28706 28623 -83 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* pstree: fix "warning: 'handle_thread' defined but not used"Denys Vlasenko2011-03-271-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace fixesDenys Vlasenko2011-02-031-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mass removal of underscores from _BB_DIR_foo and _BB_SUID_fooDenys Vlasenko2011-01-181-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* pstree: use stdin for screen size detectionDenys Vlasenko2010-12-061-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* pstree: another tiny shrinkDenys Vlasenko2010-12-051-14/+6
| | | | | | | function old new delta pstree_main 327 324 -3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* pstree: tiny shrinkDenys Vlasenko2010-12-051-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* pstree: fix width logic. +30 bytesLauri Kasanen2010-12-051-28/+26
| | | | | Signed-off-by: Lauri Kasanen <curaga@operamail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* pstree: new applet. +1664 bytesLauri Kasanen2010-12-051-0/+415
text data bss dec hex filename 883379 936 17192 901507 dc183 busybox_old 885043 936 17192 903171 dc803 busybox_unstripped Signed-off-by: Lauri Kasanen <curaga@operamail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>