aboutsummaryrefslogtreecommitdiff
path: root/procps/pgrep.c
diff options
context:
space:
mode:
Diffstat (limited to 'procps/pgrep.c')
-rw-r--r--procps/pgrep.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/procps/pgrep.c b/procps/pgrep.c
index 902a3a75e..dc7ffff48 100644
--- a/procps/pgrep.c
+++ b/procps/pgrep.c
@@ -11,7 +11,6 @@
11//usage: "[-flnovx] [-s SID|-P PPID|PATTERN]" 11//usage: "[-flnovx] [-s SID|-P PPID|PATTERN]"
12//usage:#define pgrep_full_usage "\n\n" 12//usage:#define pgrep_full_usage "\n\n"
13//usage: "Display process(es) selected by regex PATTERN\n" 13//usage: "Display process(es) selected by regex PATTERN\n"
14//usage: "\nOptions:"
15//usage: "\n -l Show command name too" 14//usage: "\n -l Show command name too"
16//usage: "\n -f Match against entire command line" 15//usage: "\n -f Match against entire command line"
17//usage: "\n -n Show the newest process only" 16//usage: "\n -n Show the newest process only"
@@ -25,7 +24,6 @@
25//usage: "[-l|-SIGNAL] [-fnovx] [-s SID|-P PPID|PATTERN]" 24//usage: "[-l|-SIGNAL] [-fnovx] [-s SID|-P PPID|PATTERN]"
26//usage:#define pkill_full_usage "\n\n" 25//usage:#define pkill_full_usage "\n\n"
27//usage: "Send a signal to process(es) selected by regex PATTERN\n" 26//usage: "Send a signal to process(es) selected by regex PATTERN\n"
28//usage: "\nOptions:"
29//usage: "\n -l List all signals" 27//usage: "\n -l List all signals"
30//usage: "\n -f Match against entire command line" 28//usage: "\n -f Match against entire command line"
31//usage: "\n -n Signal the newest process only" 29//usage: "\n -n Signal the newest process only"
@@ -130,7 +128,7 @@ int pgrep_main(int argc UNUSED_PARAM, char **argv)
130 bb_show_usage(); 128 bb_show_usage();
131 129
132 if (argv[0]) 130 if (argv[0])
133 xregcomp(&re_buffer, argv[0], 0); 131 xregcomp(&re_buffer, argv[0], REG_EXTENDED | REG_NOSUB);
134 132
135 matched_pid = 0; 133 matched_pid = 0;
136 cmd_last = NULL; 134 cmd_last = NULL;