ps: implement -o stat
function old new delta func_stat - 24 +24 out_spec 300 320 +20 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -83,7 +83,7 @@ int timeout_main(int argc UNUSED_PARAM, char **argv)
|
||||
bb_daemonize_or_rexec(0, argv);
|
||||
/* Here we are grandchild. Sleep, then kill grandparent */
|
||||
grandchild:
|
||||
/* Just sleep(NUGE_NUM); kill(parent) may kill wrong process! */
|
||||
/* Just sleep(HUGE_NUM); kill(parent) may kill wrong process! */
|
||||
while (1) {
|
||||
sleep(1);
|
||||
if (--timeout <= 0)
|
||||
|
||||
Reference in New Issue
Block a user