* archival/bunzip2.c (bunzip2_main): Do not remove files if writing to standard
[oweals/busybox.git] / init / init.c
index 8f449257ac27e74adf3b2d7e81c5d902fcd6c669..2e2f855776bfc868211d03a1d4df1861e91f1db7 100644 (file)
@@ -2,8 +2,8 @@
 /*
  * Mini init implementation for busybox
  *
- *
  * Copyright (C) 1995, 1996 by Bruce Perens <bruce@pixar.com>.
+ * Copyright (C) 1999-2002 by Erik Andersen <andersee@debian.org>
  * Adjusted by so many folks, it's impossible to keep track.
  *
  * This program is free software; you can redistribute it and/or modify
@@ -518,7 +518,7 @@ static pid_t run(struct init_action *a)
 
                /* If the init Action requires up to wait, then force the
                 * supplied terminal to be the controlling tty. */
-               if (a->action & (SYSINIT|WAIT|CTRLALTDEL|SHUTDOWN|RESTART)) {
+               if (a->action & (SYSINIT|WAIT|CTRLALTDEL|SHUTDOWN|RESTART|ASKFIRST)) {
 
                        /* Take over the controlling tty */
                        ioctl(fd, TIOCSCTTY, 1);