From: Alan Cox Date: Sat, 22 Apr 2017 18:17:23 +0000 (+0100) Subject: init: #facepalm X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=74a3e94d7bf09b13e8c6cc6af2d91e595c5b5b7f;p=FUZIX.git init: #facepalm --- 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