aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-03-07 07:58:57 +0000
committerErik Andersen <andersen@codepoet.org>2000-03-07 07:58:57 +0000
commitcbd0d625c7466af80f141e0ae24186e15987bf3e (patch)
tree2836566c6efad554fec2421e329486494f3bdbd0
parent06249f24f3d49da1fbd60b74672955849cf9d6a0 (diff)
downloadbusybox-w32-cbd0d625c7466af80f141e0ae24186e15987bf3e.tar.gz
busybox-w32-cbd0d625c7466af80f141e0ae24186e15987bf3e.tar.bz2
busybox-w32-cbd0d625c7466af80f141e0ae24186e15987bf3e.zip
Fix up some #define stuff to ensure the Right Thing(tm)
happens with all combinations of BB_KILL and BB_KILLALL being defined. -Erik
-rw-r--r--busybox.def.h3
-rw-r--r--utility.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/busybox.def.h b/busybox.def.h
index 75ad04d8d..afdc46971 100644
--- a/busybox.def.h
+++ b/busybox.def.h
@@ -39,7 +39,9 @@
39// Don't turn BB_INSMOD on. It doesn't work. 39// Don't turn BB_INSMOD on. It doesn't work.
40//#define BB_INSMOD 40//#define BB_INSMOD
41#define BB_KILL 41#define BB_KILL
42#ifdef BB_KILL
42#define BB_KILLALL 43#define BB_KILLALL
44#endif
43#define BB_KLOGD 45#define BB_KLOGD
44//#define BB_LENGTH 46//#define BB_LENGTH
45#define BB_LN 47#define BB_LN
@@ -176,3 +178,4 @@
176// 178//
177//Make sure nothing is printed to the console on boot 179//Make sure nothing is printed to the console on boot
178#define BB_FEATURE_EXTRA_QUIET 180#define BB_FEATURE_EXTRA_QUIET
181
diff --git a/utility.c b/utility.c
index 7de997474..789c6f228 100644
--- a/utility.c
+++ b/utility.c
@@ -1247,7 +1247,7 @@ extern int device_open(char *device, int mode)
1247#endif /* BB_INIT BB_SYSLOGD */ 1247#endif /* BB_INIT BB_SYSLOGD */
1248 1248
1249 1249
1250#if defined BB_INIT || defined BB_HALT || defined BB_REBOOT 1250#if defined BB_INIT || defined BB_HALT || defined BB_REBOOT || defined BB_KILLALL
1251 1251
1252#ifdef BB_FEATURE_USE_DEVPS_N_DEVMTAB 1252#ifdef BB_FEATURE_USE_DEVPS_N_DEVMTAB
1253#include <linux/devps.h> 1253#include <linux/devps.h>
@@ -1353,7 +1353,7 @@ extern pid_t findPidByName( char* pidName)
1353 return 0; 1353 return 0;
1354} 1354}
1355#endif /* BB_FEATURE_USE_DEVPS_N_DEVMTAB */ 1355#endif /* BB_FEATURE_USE_DEVPS_N_DEVMTAB */
1356#endif /* BB_INIT || BB_HALT || BB_REBOOT */ 1356#endif /* BB_INIT || BB_HALT || BB_REBOOT || KILLALL */
1357 1357
1358#if defined BB_GUNZIP \ 1358#if defined BB_GUNZIP \
1359 || defined BB_GZIP \ 1359 || defined BB_GZIP \