diff options
author | Mike Frysinger | 2005-07-06 04:46:14 +0000 |
---|---|---|
committer | Mike Frysinger | 2005-07-06 04:46:14 +0000 |
commit | e548bdff969aeaeac084c351dc375d37e918f634 (patch) | |
tree | 6fd53a6aabb3d686c0e9fd4479079e5af124d9a4 /init | |
parent | 95ef16528cd90023244ee459d865f8770d164ac0 (diff) | |
download | busybox-e548bdff969aeaeac084c351dc375d37e918f634.zip busybox-e548bdff969aeaeac084c351dc375d37e918f634.tar.gz |
2005-07-04 Shaun Jackman <sjackman@gmail.com>
* init/init.c: Do not include sys/mount.h.
(message): Use O_NONBLOCK instead of O_NDELAY.
(console_init): Ditto.
Diffstat (limited to 'init')
-rw-r--r-- | init/init.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/init/init.c b/init/init.c index 5281225..95d7253 100644 --- a/init/init.c +++ b/init/init.c @@ -39,7 +39,6 @@ #include <limits.h> #include <sys/fcntl.h> #include <sys/ioctl.h> -#include <sys/mount.h> #include <sys/types.h> #include <sys/wait.h> #include <sys/reboot.h> @@ -239,7 +238,7 @@ static void message(int device, const char *fmt, ...) /* Take full control of the log tty, and never close it. * It's mine, all mine! Muhahahaha! */ if (log_fd < 0) { - if ((log_fd = device_open(log_console, O_RDWR | O_NDELAY | O_NOCTTY)) < 0) { + if ((log_fd = device_open(log_console, O_RDWR | O_NONBLOCK | O_NOCTTY)) < 0) { log_fd = -2; bb_error_msg("Bummer, can't write to log on %s!", log_console); device = CONSOLE; @@ -254,7 +253,7 @@ static void message(int device, const char *fmt, ...) if (device & CONSOLE) { int fd = device_open(_PATH_CONSOLE, - O_WRONLY | O_NOCTTY | O_NDELAY); + O_WRONLY | O_NOCTTY | O_NONBLOCK); /* Always send console messages to /dev/console so people will see them. */ if (fd >= 0) { bb_full_write(fd, msg, l); |