randomconfig fixes
[oweals/busybox.git] / procps / pidof.c
index 0d08c6095977820470caddeefb985f01aa44f7db..5595e34217900039d0032ff8756982bca105ff47 100644 (file)
@@ -7,29 +7,33 @@
  * Licensed under GPLv2, see file LICENSE in this source tree.
  */
 //config:config PIDOF
-//config:      bool "pidof (6.6 kb)"
+//config:      bool "pidof (6.3 kb)"
 //config:      default y
 //config:      help
-//config:        Pidof finds the process id's (pids) of the named programs. It prints
-//config:        those id's on the standard output.
+//config:      Pidof finds the process id's (pids) of the named programs. It prints
+//config:      those id's on the standard output.
 //config:
 //config:config FEATURE_PIDOF_SINGLE
 //config:      bool "Enable single shot (-s)"
 //config:      default y
 //config:      depends on PIDOF
 //config:      help
-//config:        Support '-s' for returning only the first pid found.
+//config:      Support '-s' for returning only the first pid found.
 //config:
 //config:config FEATURE_PIDOF_OMIT
 //config:      bool "Enable omitting pids (-o PID)"
 //config:      default y
 //config:      depends on PIDOF
 //config:      help
-//config:        Support '-o PID' for omitting the given pid(s) in output.
-//config:        The special pid %PPID can be used to name the parent process
-//config:        of the pidof, in other words the calling shell or shell script.
+//config:      Support '-o PID' for omitting the given pid(s) in output.
+//config:      The special pid %PPID can be used to name the parent process
+//config:      of the pidof, in other words the calling shell or shell script.
 
 //applet:IF_PIDOF(APPLET(pidof, BB_DIR_BIN, BB_SUID_DROP))
+/* 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_PIDOF) += pidof.o