randomconfig fixes
[oweals/busybox.git] / procps / pgrep.c
index a3ca9e295686495f0bf328cf8c255e46de363661..495e0ef9d45ffa3ba62dcf57e74900c6a86c69ef 100644 (file)
@@ -7,20 +7,24 @@
  * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  */
 //config:config PGREP
-//config:      bool "pgrep (6.8 kb)"
+//config:      bool "pgrep (6.5 kb)"
 //config:      default y
 //config:      help
 //config:      Look for processes by name.
 //config:
 //config:config PKILL
-//config:      bool "pkill (7.6 kb)"
+//config:      bool "pkill (7.5 kb)"
 //config:      default y
 //config:      help
 //config:      Send signals to processes by name.
 
-//applet:IF_PGREP(APPLET(pgrep, BB_DIR_USR_BIN, BB_SUID_DROP))
+//applet:IF_PGREP(APPLET_ODDNAME(pgrep, pgrep, BB_DIR_USR_BIN, BB_SUID_DROP, pgrep))
 //                APPLET_ODDNAME:name   main   location        suid_type     help
 //applet:IF_PKILL(APPLET_ODDNAME(pkill, pgrep, BB_DIR_USR_BIN, BB_SUID_DROP, pkill))
+/* can't be noexec: can find _itself_ under wrong name, since after fork only,
+ * /proc/PID/cmdline and comm are wrong! Can fix comm (prctl(PR_SET_NAME)),
+ * but cmdline?
+ */
 
 //kbuild:lib-$(CONFIG_PGREP) += pgrep.o
 //kbuild:lib-$(CONFIG_PKILL) += pgrep.o