From 74a3e94d7bf09b13e8c6cc6af2d91e595c5b5b7f Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 22 Apr 2017 19:17:23 +0100 Subject: [PATCH] init: #facepalm --- Applications/util/init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Applications/util/init.c b/Applications/util/init.c index e783230d..1258d400 100644 --- a/Applications/util/init.c +++ b/Applications/util/init.c @@ -437,6 +437,7 @@ static void reload_inittab(void) /* FIXME: we don't kill and restart an entry that has changed but will respawn the new form. There isn't an easy way to fix that without further major reworking */ + /* FIXME: do all the HUPs then one sleep then all the KILLs */ for (i = 0; i < oldcount; i++) { struct initpid *n = find_id(p->id); if (n == NULL && p->pid) { @@ -447,6 +448,7 @@ static void reload_inittab(void) } else { n->pid = p->pid; } + p++; } /* We could shuffle all the pointers back down and free the old pid table, but there is no point. If we do a further reload -- 2.34.1