diff options
author | Olivier Blin <oblin@mandriva.org> | 2004-08-12 11:42:02 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2004-08-12 11:42:02 +0000 |
commit | e65ee3a8a3caf124d81a488c69331e93af541f24 (patch) | |
tree | 5f623bd083f61790de114ae6d5c62747da57bb10 /mdk-stage1 | |
parent | 33267924c53a6c97af91a12dcf9d79ca43e5d52e (diff) | |
download | drakx-e65ee3a8a3caf124d81a488c69331e93af541f24.tar drakx-e65ee3a8a3caf124d81a488c69331e93af541f24.tar.gz drakx-e65ee3a8a3caf124d81a488c69331e93af541f24.tar.bz2 drakx-e65ee3a8a3caf124d81a488c69331e93af541f24.tar.xz drakx-e65ee3a8a3caf124d81a488c69331e93af541f24.zip |
reorder else if blocks, it's useless to do two times the same test
(WEXITSTATUS(wait_status) == exit_value_proceed)
Diffstat (limited to 'mdk-stage1')
-rw-r--r-- | mdk-stage1/init.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mdk-stage1/init.c b/mdk-stage1/init.c index 3a8d8e3b8..3aada32bb 100644 --- a/mdk-stage1/init.c +++ b/mdk-stage1/init.c @@ -524,16 +524,16 @@ int main(int argc, char **argv) if (in_reboot()) { // any exitcode is valid if we're in_reboot - } else if (!WIFEXITED(wait_status) || (WEXITSTATUS(wait_status) != 0 && WEXITSTATUS(wait_status) != exit_value_proceed)) { - printf("exited abnormally :-( "); - if (WIFSIGNALED(wait_status)) - printf("-- received signal %d", WTERMSIG(wait_status)); - printf("\n"); abnormal_termination = 1; } else if (WIFEXITED(wait_status) && WEXITSTATUS(wait_status) == exit_value_proceed) { kill(klog_pid, 9); printf("proceeding, please wait...\n"); return 0; + } else if (!WIFEXITED(wait_status) || WEXITSTATUS(wait_status) != 0) { + printf("exited abnormally :-( "); + if (WIFSIGNALED(wait_status)) + printf("-- received signal %d", WTERMSIG(wait_status)); + printf("\n"); } if (!abnormal_termination) { |