From d749b2a3507517ff0fe39f7dac69f44ce20c56a2 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 13 Jul 2017 00:04:49 +0200 Subject: [PATCH] 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 --- upgraded/upgraded.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.30.2