svn commit: trunk/busybox: include libbb
vda at busybox.net
vda at busybox.net
Sat Feb 14 01:36:12 UTC 2009
Author: vda
Date: 2009-02-14 01:36:11 +0000 (Sat, 14 Feb 2009)
New Revision: 25328
Log:
killall and sestatus also need ARGVN scanning
Modified:
trunk/busybox/include/libbb.h
trunk/busybox/libbb/find_pid_by_name.c
Changeset:
Modified: trunk/busybox/include/libbb.h
===================================================================
--- trunk/busybox/include/libbb.h 2009-02-13 19:57:59 UTC (rev 25327)
+++ trunk/busybox/include/libbb.h 2009-02-14 01:36:11 UTC (rev 25328)
@@ -1281,7 +1281,13 @@
PSSCAN_UTIME = 1 << 13,
PSSCAN_TTY = 1 << 14,
PSSCAN_SMAPS = (1 << 15) * ENABLE_FEATURE_TOPMEM,
- PSSCAN_ARGVN = (1 << 16) * (ENABLE_PGREP || ENABLE_PKILL || ENABLE_PIDOF),
+ /* NB: used by find_pid_by_name(). Any applet using it
+ * needs to be mentioned here. */
+ PSSCAN_ARGVN = (1 << 16) * (ENABLE_KILLALL
+ || ENABLE_PGREP || ENABLE_PKILL
+ || ENABLE_PIDOF
+ || ENABLE_SESTATUS
+ ),
USE_SELINUX(PSSCAN_CONTEXT = 1 << 17,)
PSSCAN_START_TIME = 1 << 18,
PSSCAN_CPU = 1 << 19,
Modified: trunk/busybox/libbb/find_pid_by_name.c
===================================================================
--- trunk/busybox/libbb/find_pid_by_name.c 2009-02-13 19:57:59 UTC (rev 25327)
+++ trunk/busybox/libbb/find_pid_by_name.c 2009-02-14 01:36:11 UTC (rev 25328)
@@ -67,15 +67,14 @@
return 1;
}
-/* find_pid_by_name()
+/* This finds the pid of the specified process.
+ * Currently, it's implemented by rummaging through
+ * the proc filesystem.
*
- * Modified by Vladimir Oleynik for use with libbb/procps.c
- * This finds the pid of the specified process.
- * Currently, it's implemented by rummaging through
- * the proc filesystem.
+ * Returns a list of all matching PIDs
+ * It is the caller's duty to free the returned pidlist.
*
- * Returns a list of all matching PIDs
- * It is the caller's duty to free the returned pidlist.
+ * Modified by Vladimir Oleynik for use with libbb/procps.c
*/
pid_t* FAST_FUNC find_pid_by_name(const char *procName)
{
More information about the busybox-cvs
mailing list