From: Matthias Schiffer Date: Wed, 12 Jul 2017 22:04:49 +0000 (+0200) Subject: upgraded: register stage2 process in uloop as intended X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d749b2a3507517ff0fe39f7dac69f44ce20c56a2;p=oweals%2Fprocd.git upgraded: register stage2 process in uloop as intended Make the process callback effective, so an exit of state2 will trigger a reboot. Signed-off-by: Matthias Schiffer --- diff --git a/upgraded/upgraded.c b/upgraded/upgraded.c index e70f92d..6bc5ad8 100644 --- a/upgraded/upgraded.c +++ b/upgraded/upgraded.c @@ -58,6 +58,8 @@ static void sysupgrade(char *path, char *command) fprintf(stderr, "Failed to start sysupgrade\n"); uloop_end(); } + + uloop_process_add(&upgrade_proc); } int main(int argc, char **argv)