aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-07-13 08:06:26 +0100
committerRon Yorston <rmy@pobox.com>2023-07-13 08:06:26 +0100
commitbd978d0256fd3a67de1a7dd54f1a37f9435be363 (patch)
treecb869384a533ac0d95fe787d75be6c050e1e7c1a /init
parentb2901ce8efa050da00e0f3a73f3be9bf9402deea (diff)
parentd70256a5c719439cc6fab6a4571c1bb46178e4c7 (diff)
downloadbusybox-w32-bd978d0256fd3a67de1a7dd54f1a37f9435be363.tar.gz
busybox-w32-bd978d0256fd3a67de1a7dd54f1a37f9435be363.tar.bz2
busybox-w32-bd978d0256fd3a67de1a7dd54f1a37f9435be363.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'init')
-rw-r--r--init/halt.c6
-rw-r--r--init/init.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/init/halt.c b/init/halt.c
index fe3cb9e75..7aea8cfec 100644
--- a/init/halt.c
+++ b/init/halt.c
@@ -7,19 +7,19 @@
7 * Licensed under GPLv2, see file LICENSE in this source tree. 7 * Licensed under GPLv2, see file LICENSE in this source tree.
8 */ 8 */
9//config:config HALT 9//config:config HALT
10//config: bool "halt (4 kb)" 10//config: bool "halt (4.3 kb)"
11//config: default y 11//config: default y
12//config: help 12//config: help
13//config: Stop all processes and halt the system. 13//config: Stop all processes and halt the system.
14//config: 14//config:
15//config:config POWEROFF 15//config:config POWEROFF
16//config: bool "poweroff (4 kb)" 16//config: bool "poweroff (4.3 kb)"
17//config: default y 17//config: default y
18//config: help 18//config: help
19//config: Stop all processes and power off the system. 19//config: Stop all processes and power off the system.
20//config: 20//config:
21//config:config REBOOT 21//config:config REBOOT
22//config: bool "reboot (4 kb)" 22//config: bool "reboot (4.3 kb)"
23//config: default y 23//config: default y
24//config: help 24//config: help
25//config: Stop all processes and reboot the system. 25//config: Stop all processes and reboot the system.
diff --git a/init/init.c b/init/init.c
index 1e1ce833d..2ee1e4cde 100644
--- a/init/init.c
+++ b/init/init.c
@@ -500,7 +500,7 @@ static pid_t run(const struct init_action *a)
500 500
501 /* Open the new terminal device */ 501 /* Open the new terminal device */
502 if (!open_stdio_to_tty(a->terminal)) 502 if (!open_stdio_to_tty(a->terminal))
503 _exit(EXIT_FAILURE); 503 _exit_FAILURE();
504 504
505 /* NB: on NOMMU we can't wait for input in child, so 505 /* NB: on NOMMU we can't wait for input in child, so
506 * "askfirst" will work the same as "respawn". */ 506 * "askfirst" will work the same as "respawn". */