Skip to content

Commit 9210f28

Browse files
committed
Skip killing initctl on shutdown/reboot
Initiating a shutdown/reboot from `initctl` should not cause `initctl` to be killed in do_shutdown(). Signed-off-by: Joachim Wiberg <[email protected]>
1 parent 617609c commit 9210f28

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sig.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ void do_iterate_proc(int (*cb)(int, void *), void *data)
232232
dbg("Skipping %s ...", file);
233233
else if (file[0] == '@')
234234
dbg("Skipping %s ...", &file[1]);
235+
else if (strstr(file, "initctl"))
236+
dbg("Skipping %s ...", file);
235237
else
236238
if (cb(pid, data)) {
237239
dbg("PID %d is still alive (%s)", pid, file);

0 commit comments

Comments
 (0)