diff options
author | Ron Yorston <rmy@pobox.com> | 2022-01-06 07:46:38 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2022-01-06 07:46:38 +0000 |
commit | b8751bbc9ac24e71fbe1e79c69074b4c87a134d8 (patch) | |
tree | 336d653df8387b9b1d3c6e46caa373c00cb9b2b2 /init | |
parent | b15f68214da209b5b293039c09c00f490c0cc193 (diff) | |
parent | 6062c0d19bc201cbeb61b8875598cdd7a14a5ae0 (diff) | |
download | busybox-w32-b8751bbc9ac24e71fbe1e79c69074b4c87a134d8.tar.gz busybox-w32-b8751bbc9ac24e71fbe1e79c69074b4c87a134d8.tar.bz2 busybox-w32-b8751bbc9ac24e71fbe1e79c69074b4c87a134d8.zip |
Merge busybox into merge
Fix merge conflict in miscutils/less.c.
Use exit_SUCCESS() where possible.
Diffstat (limited to 'init')
-rw-r--r-- | init/init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/init/init.c b/init/init.c index efab5dcb4..785a3b460 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -744,7 +744,7 @@ static void pause_and_low_level_reboot(unsigned magic) | |||
744 | pid = vfork(); | 744 | pid = vfork(); |
745 | if (pid == 0) { /* child */ | 745 | if (pid == 0) { /* child */ |
746 | reboot(magic); | 746 | reboot(magic); |
747 | _exit(EXIT_SUCCESS); | 747 | _exit_SUCCESS(); |
748 | } | 748 | } |
749 | /* Used to have "while (1) sleep(1)" here. | 749 | /* Used to have "while (1) sleep(1)" here. |
750 | * However, in containers reboot() call is ignored, and with that loop | 750 | * However, in containers reboot() call is ignored, and with that loop |
@@ -752,7 +752,7 @@ static void pause_and_low_level_reboot(unsigned magic) | |||
752 | */ | 752 | */ |
753 | waitpid(pid, NULL, 0); | 753 | waitpid(pid, NULL, 0); |
754 | sleep1(); /* paranoia */ | 754 | sleep1(); /* paranoia */ |
755 | _exit(EXIT_SUCCESS); | 755 | _exit_SUCCESS(); |
756 | } | 756 | } |
757 | 757 | ||
758 | static void run_shutdown_and_kill_processes(void) | 758 | static void run_shutdown_and_kill_processes(void) |
@@ -942,7 +942,7 @@ static void reload_inittab(void) | |||
942 | for (a = G.init_action_list; a; a = a->next) | 942 | for (a = G.init_action_list; a; a = a->next) |
943 | if (a->action_type == 0 && a->pid != 0) | 943 | if (a->action_type == 0 && a->pid != 0) |
944 | kill(a->pid, SIGKILL); | 944 | kill(a->pid, SIGKILL); |
945 | _exit(EXIT_SUCCESS); | 945 | _exit_SUCCESS(); |
946 | } | 946 | } |
947 | } | 947 | } |
948 | #endif | 948 | #endif |