upgraded: register stage2 process in uloop as intended
authorMatthias Schiffer <mschiffer@universe-factory.net>
Wed, 12 Jul 2017 22:04:49 +0000 (00:04 +0200)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Wed, 12 Jul 2017 22:05:27 +0000 (00:05 +0200)
Make the process callback effective, so an exit of state2 will trigger a
reboot.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
upgraded/upgraded.c

index e70f92dd42cb1f84792d2fc5adf9728e21f640f1..6bc5ad8f94f3060c7c56535418b5df6f64df2f26 100644 (file)
@@ -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)