diff options
Diffstat (limited to 'init/init.c')
-rw-r--r-- | init/init.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/init/init.c b/init/init.c index 3b0a66a24..edbd90bfe 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -660,8 +660,7 @@ static pid_t run(struct init_action *a) | |||
660 | execve(cmdpath, cmd, environment); | 660 | execve(cmdpath, cmd, environment); |
661 | 661 | ||
662 | /* We're still here? Some error happened. */ | 662 | /* We're still here? Some error happened. */ |
663 | message(LOG | CONSOLE, "\rBummer, could not run '%s': %s\n", cmdpath, | 663 | message(LOG | CONSOLE, "\rBummer, could not run '%s': %m\n", cmdpath); |
664 | strerror(errno)); | ||
665 | _exit(-1); | 664 | _exit(-1); |
666 | } | 665 | } |
667 | sigprocmask(SIG_SETMASK, &omask, NULL); | 666 | sigprocmask(SIG_SETMASK, &omask, NULL); |
@@ -785,8 +784,8 @@ static void exec_signal(int sig) | |||
785 | message(CONSOLE | LOG, "\rTrying to re-exec %s\n", a->command); | 784 | message(CONSOLE | LOG, "\rTrying to re-exec %s\n", a->command); |
786 | execl(a->command, a->command, NULL); | 785 | execl(a->command, a->command, NULL); |
787 | 786 | ||
788 | message(CONSOLE | LOG, "\rexec of '%s' failed: %s\n", | 787 | message(CONSOLE | LOG, "\rexec of '%s' failed: %m\n", |
789 | a->command, strerror(errno)); | 788 | a->command); |
790 | sync(); | 789 | sync(); |
791 | sleep(2); | 790 | sleep(2); |
792 | init_reboot(RB_HALT_SYSTEM); | 791 | init_reboot(RB_HALT_SYSTEM); |