diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-06 06:05:54 +0300 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-06 06:05:54 +0300 |
commit | 6bef3d1d2216234454875052220ca0f477a820b4 (patch) | |
tree | 717060345370b781d3d1cde7ab4dd29304a066e8 /init | |
parent | 1bec1b980e3cf5ad604fb0c2038a3ab83d9ab5f5 (diff) |
fbset: fix buglet where we were using wrong pointer
readahead: stop using stdio.h
*: style fixes
Diffstat (limited to 'init')
-rw-r--r-- | init/init.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/init/init.c b/init/init.c index 409e8c41f..4b543a44f 100644 --- a/init/init.c +++ b/init/init.c @@ -369,7 +369,8 @@ static pid_t run(const struct init_action *a) if (a->action & (SYSINIT | WAIT | CTRLALTDEL | SHUTDOWN | RESTART)) { /* Now fork off another process to just hang around */ - if ((pid = fork()) < 0) { + pid = fork(); + if (pid) { message(L_LOG | L_CONSOLE, "Can't fork"); _exit(1); } @@ -388,7 +389,8 @@ static pid_t run(const struct init_action *a) _exit(0); /* Use a temporary process to steal the controlling tty. */ - if ((pid = fork()) < 0) { + pid = fork(); + if (pid < 0) { message(L_LOG | L_CONSOLE, "Can't fork"); _exit(1); } |