upgraded: register stage2 process in uloop as intended
[project/procd.git] / upgraded / upgraded.c
index 79ebd37..6bc5ad8 100644 (file)
@@ -12,6 +12,8 @@
  * GNU General Public License for more details.
  */
 
+#define _GNU_SOURCE
+
 #include <sys/reboot.h>
 
 #include <fcntl.h>
@@ -56,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)