diff options
author | Ron Yorston <rmy@pobox.com> | 2017-07-29 09:55:08 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2017-07-29 09:55:08 +0100 |
commit | 86d60bb0ceb277e500a8daabd995bc713bbdadc9 (patch) | |
tree | 3e439f92d5a3fec2546d526579cc85e98f066e40 /procps | |
parent | b30c60a9786a1608211a96755996bd6c02951a27 (diff) | |
parent | 69be994de69d794f038f10a3e7a67519b2006581 (diff) | |
download | busybox-w32-86d60bb0ceb277e500a8daabd995bc713bbdadc9.tar.gz busybox-w32-86d60bb0ceb277e500a8daabd995bc713bbdadc9.tar.bz2 busybox-w32-86d60bb0ceb277e500a8daabd995bc713bbdadc9.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'procps')
-rw-r--r-- | procps/kill.c | 2 | ||||
-rw-r--r-- | procps/ps.c | 11 |
2 files changed, 7 insertions, 6 deletions
diff --git a/procps/kill.c b/procps/kill.c index 5cff24475..09beefb2d 100644 --- a/procps/kill.c +++ b/procps/kill.c | |||
@@ -188,7 +188,7 @@ int kill_main(int argc UNUSED_PARAM, char **argv) | |||
188 | arg = *++argv; | 188 | arg = *++argv; |
189 | } /* else it must be -SIG */ | 189 | } /* else it must be -SIG */ |
190 | signo = get_signum(arg); | 190 | signo = get_signum(arg); |
191 | if (signo < 0) { /* || signo > MAX_SIGNUM ? */ | 191 | if (signo < 0) { |
192 | bb_error_msg("bad signal name '%s'", arg); | 192 | bb_error_msg("bad signal name '%s'", arg); |
193 | return EXIT_FAILURE; | 193 | return EXIT_FAILURE; |
194 | } | 194 | } |
diff --git a/procps/ps.c b/procps/ps.c index c1da921bd..3e83a3e03 100644 --- a/procps/ps.c +++ b/procps/ps.c | |||
@@ -345,6 +345,11 @@ static void func_pgid(char *buf, int size, const procps_status_t *ps) | |||
345 | sprintf(buf, "%*u", size, ps->pgid); | 345 | sprintf(buf, "%*u", size, ps->pgid); |
346 | } | 346 | } |
347 | 347 | ||
348 | static void func_sid(char *buf, int size, const procps_status_t *ps) | ||
349 | { | ||
350 | sprintf(buf, "%*u", size, ps->sid); | ||
351 | } | ||
352 | |||
348 | static void put_lu(char *buf, int size, unsigned long u) | 353 | static void put_lu(char *buf, int size, unsigned long u) |
349 | { | 354 | { |
350 | char buf4[5]; | 355 | char buf4[5]; |
@@ -430,11 +435,6 @@ static void func_label(char *buf, int size, const procps_status_t *ps) | |||
430 | #endif | 435 | #endif |
431 | 436 | ||
432 | /* | 437 | /* |
433 | static void func_nice(char *buf, int size, const procps_status_t *ps) | ||
434 | { | ||
435 | ps->??? | ||
436 | } | ||
437 | |||
438 | static void func_pcpu(char *buf, int size, const procps_status_t *ps) | 438 | static void func_pcpu(char *buf, int size, const procps_status_t *ps) |
439 | { | 439 | { |
440 | } | 440 | } |
@@ -471,6 +471,7 @@ static const ps_out_t out_spec[] = { | |||
471 | { 6 , "tty" ,"TT" ,func_tty ,PSSCAN_TTY }, | 471 | { 6 , "tty" ,"TT" ,func_tty ,PSSCAN_TTY }, |
472 | { 4 , "vsz" ,"VSZ" ,func_vsz ,PSSCAN_VSZ }, | 472 | { 4 , "vsz" ,"VSZ" ,func_vsz ,PSSCAN_VSZ }, |
473 | /* Not mandated, but useful: */ | 473 | /* Not mandated, but useful: */ |
474 | { 5 , "sid" ,"SID" ,func_sid ,PSSCAN_SID }, | ||
474 | { 4 , "stat" ,"STAT" ,func_state ,PSSCAN_STATE }, | 475 | { 4 , "stat" ,"STAT" ,func_state ,PSSCAN_STATE }, |
475 | { 4 , "rss" ,"RSS" ,func_rss ,PSSCAN_RSS }, | 476 | { 4 , "rss" ,"RSS" ,func_rss ,PSSCAN_RSS }, |
476 | #endif | 477 | #endif |