unix/fiss

fixing reboot on `halt` (init 6 -> 0) (2ceb2029748122c9b48cf5f114194ae69a2fbf8d)
Repositories | LICENSE

commit 2ceb2029748122c9b48cf5f114194ae69a2fbf8d
parent db239c9450031e7ee393f0466f490a85eeecbd08
Author: Friedel Schön <[email protected]>
Date:   Sun, 14 May 2023 14:00:34 +0200

fixing reboot on `halt` (init 6 -> 0)

Diffstat:
Msrc/exec/halt.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/exec/halt.c b/src/exec/halt.c @@ -49,7 +49,7 @@ int main(int argc, char* argv[]) { if (do_force) reboot(RB_HALT_SYSTEM); else - execl("/sbin/finit", "init", "6", NULL); + execl("/sbin/finit", "init", "0", NULL); err(1, "reboot failed"); }