From 57dc5345e2f30eb990722be45449dcae1b15a1ad Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 6 Jul 2009 00:00:12 +0200 Subject: 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 Signed-off-by: Denys Vlasenko --- include/usage.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/usage.h b/include/usage.h index 4e055168e..53ae0a8cc 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 ...]" -- cgit v1.2.3