aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-04-12 17:59:24 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-04-12 17:59:24 +0000
commita9b025f006fd266156bc8fe98d44a5aa5a598e7c (patch)
tree4f31c690a602713220868b2d6f98bf4aaf53eeed /init
parentdc4f588bc2323ec6d5f0b0d92bfb78d99be38cc3 (diff)
downloadbusybox-w32-a9b025f006fd266156bc8fe98d44a5aa5a598e7c.tar.gz
busybox-w32-a9b025f006fd266156bc8fe98d44a5aa5a598e7c.tar.bz2
busybox-w32-a9b025f006fd266156bc8fe98d44a5aa5a598e7c.zip
Jamie Guinan writes:
It looks like latest uClibc defines ARCH_HAS_MMU, but a few busybox files test UCLIBC_HAS_MMU, resulting in vfork() getting called instead of fork(), etc. Patch below. Only tested for lash. Cheers, -Jamie git-svn-id: svn://busybox.net/trunk/busybox@8738 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'init')
-rw-r--r--init/init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/init/init.c b/init/init.c
index 159b53912..ae2fd4c3a 100644
--- a/init/init.c
+++ b/init/init.c
@@ -53,7 +53,7 @@
53#endif 53#endif
54 54
55 55
56#if defined(__UCLIBC__) && !defined(__UCLIBC_HAS_MMU__) 56#if defined(__UCLIBC__) && !defined(__ARCH_HAS_MMU__)
57#define fork vfork 57#define fork vfork
58#endif 58#endif
59 59
@@ -913,7 +913,7 @@ static void check_memory(void)
913 if (check_free_memory() > 1000) 913 if (check_free_memory() > 1000)
914 return; 914 return;
915 915
916#if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__) 916#if !defined(__UCLIBC__) || defined(__ARCH_HAS_MMU__)
917 if (stat("/etc/fstab", &statBuf) == 0) { 917 if (stat("/etc/fstab", &statBuf) == 0) {
918 /* swapon -a requires /proc typically */ 918 /* swapon -a requires /proc typically */
919 new_init_action(SYSINIT, "/bin/mount -t proc proc /proc", ""); 919 new_init_action(SYSINIT, "/bin/mount -t proc proc /proc", "");
@@ -957,7 +957,7 @@ static void parse_inittab(void)
957 new_init_action(CTRLALTDEL, "/sbin/reboot", ""); 957 new_init_action(CTRLALTDEL, "/sbin/reboot", "");
958 /* Umount all filesystems on halt/reboot */ 958 /* Umount all filesystems on halt/reboot */
959 new_init_action(SHUTDOWN, "/bin/umount -a -r", ""); 959 new_init_action(SHUTDOWN, "/bin/umount -a -r", "");
960#if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__) 960#if !defined(__UCLIBC__) || defined(__ARCH_HAS_MMU__)
961 /* Swapoff on halt/reboot */ 961 /* Swapoff on halt/reboot */
962 new_init_action(SHUTDOWN, "/sbin/swapoff -a", ""); 962 new_init_action(SHUTDOWN, "/sbin/swapoff -a", "");
963#endif 963#endif