diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-08-16 09:29:42 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-08-16 09:29:42 +0000 |
commit | 6e2538ea91d2173315c802d0a1ee6f1dbfba46c1 (patch) | |
tree | 5c66b9b5d99980140f40b5f3ee2ead1cca607148 /init | |
parent | 906e5fa92c28c60e472817015e6c4d106f2e1737 (diff) | |
download | busybox-w32-6e2538ea91d2173315c802d0a1ee6f1dbfba46c1.tar.gz busybox-w32-6e2538ea91d2173315c802d0a1ee6f1dbfba46c1.tar.bz2 busybox-w32-6e2538ea91d2173315c802d0a1ee6f1dbfba46c1.zip |
Do not use vfork, as init is not vfork safe. Do not allow
askfirst when mmuless.
git-svn-id: svn://busybox.net/trunk/busybox@9102 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'init')
-rw-r--r-- | init/init.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/init/init.c b/init/init.c index 11ebc6bf9..2278e521f 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -53,10 +53,6 @@ | |||
53 | #endif | 53 | #endif |
54 | 54 | ||
55 | 55 | ||
56 | #if defined(__UCLIBC__) && !defined(__ARCH_HAS_MMU__) | ||
57 | #define fork vfork | ||
58 | #endif | ||
59 | |||
60 | #define INIT_BUFFS_SIZE 256 | 56 | #define INIT_BUFFS_SIZE 256 |
61 | 57 | ||
62 | /* From <linux/vt.h> */ | 58 | /* From <linux/vt.h> */ |
@@ -580,6 +576,7 @@ static pid_t run(const struct init_action *a) | |||
580 | } | 576 | } |
581 | } | 577 | } |
582 | 578 | ||
579 | #if !defined(__UCLIBC__) || defined(__ARCH_HAS_MMU__) | ||
583 | if (a->action & ASKFIRST) { | 580 | if (a->action & ASKFIRST) { |
584 | char c; | 581 | char c; |
585 | /* | 582 | /* |
@@ -597,6 +594,7 @@ static pid_t run(const struct init_action *a) | |||
597 | while(read(0, &c, 1) == 1 && c != '\n') | 594 | while(read(0, &c, 1) == 1 && c != '\n') |
598 | ; | 595 | ; |
599 | } | 596 | } |
597 | #endif | ||
600 | 598 | ||
601 | /* Log the process name and args */ | 599 | /* Log the process name and args */ |
602 | message(LOG, "Starting pid %d, console %s: '%s'", | 600 | message(LOG, "Starting pid %d, console %s: '%s'", |