diff options
author | Denys Vlasenko | 2009-07-06 00:00:12 +0200 |
---|---|---|
committer | Denys Vlasenko | 2009-07-06 00:00:12 +0200 |
commit | 57dc5345e2f30eb990722be45449dcae1b15a1ad (patch) | |
tree | fb5c52bbf5f36ea7ae9c774122ee4065daf177d7 /include | |
parent | 666e1d3978ebd2b72b18333f4face0e10cc816ba (diff) | |
download | busybox-57dc5345e2f30eb990722be45449dcae1b15a1ad.zip busybox-57dc5345e2f30eb990722be45449dcae1b15a1ad.tar.gz |
pgrep/pkill: support -s and -P options
function old new delta
pgrep_main 510 580 +70
packed_usage 26575 26616 +41
act 234 236 +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 113/0) Total: 113 bytes
Signed-off-by: Rob Landley <rob@landley.net>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/usage.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/usage.h b/include/usage.h index 4e05516..53ae0a8 100644 --- a/include/usage.h +++ b/include/usage.h @@ -3229,7 +3229,7 @@ "$ patch -p0 -i example.diff" #define pgrep_trivial_usage \ - "[-flnovx] PATTERN" + "[-flnovx] [-s SID|-P PPID|PATTERN]" #define pgrep_full_usage "\n\n" \ "Display process(es) selected by regex PATTERN\n" \ "\nOptions:" \ @@ -3237,8 +3237,10 @@ "\n -f Match against entire command line" \ "\n -n Show the newest process only" \ "\n -o Show the oldest process only" \ - "\n -v Negate the matching" \ + "\n -v Negate the match" \ "\n -x Match whole name (not substring)" \ + "\n -s Match session ID (0 for current)" \ + "\n -P Match parent process ID" \ #if (ENABLE_FEATURE_PIDOF_SINGLE || ENABLE_FEATURE_PIDOF_OMIT) #define pidof_trivial_usage \ @@ -3331,7 +3333,7 @@ "the new root file system" #define pkill_trivial_usage \ - "[-l] | [-fnovx] [-signal] PATTERN" + "[-l|-SIGNAL] [-fnovx] [-s SID|-P PPID|PATTERN]" #define pkill_full_usage "\n\n" \ "Send a signal to process(es) selected by regex PATTERN\n" \ "\nOptions:" \ @@ -3339,8 +3341,10 @@ "\n -f Match against entire command line" \ "\n -n Signal the newest process only" \ "\n -o Signal the oldest process only" \ - "\n -v Negate the matching" \ + "\n -v Negate the match" \ "\n -x Match whole name (not substring)" \ + "\n -s Match session ID (0 for current)" \ + "\n -P Match parent process ID" \ #define popmaildir_trivial_usage \ "[OPTIONS] Maildir [connection-helper ...]" |