Browse Source

* Let hub use -u/U

svn: 1370
Bryan Drewery 21 years ago
parent
commit
88849074e9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/main.c

+ 3 - 0
src/main.c

@@ -683,6 +683,8 @@ static void startup_checks() {
         printf("Error killing '%s'\n", do_killbot);
         printf("Error killing '%s'\n", do_killbot);
       exit(0);
       exit(0);
     } else {
     } else {
+#endif /* LEAF */
+      /* this needs to be both hub/leaf */
       if (update_bin)	{			/* invoked with -u bin */
       if (update_bin)	{			/* invoked with -u bin */
         if (updating != 2) {
         if (updating != 2) {
           kill(conf.bot->pid, SIGKILL);
           kill(conf.bot->pid, SIGKILL);
@@ -692,6 +694,7 @@ static void startup_checks() {
         updatebin(DP_STDOUT, update_bin, 1);	/* will call restart all bots */
         updatebin(DP_STDOUT, update_bin, 1);	/* will call restart all bots */
         /* never reached */
         /* never reached */
       }
       }
+#ifdef LEAF
       spawnbots();
       spawnbots();
       if (updating)
       if (updating)
         exit(0); /* just let the timer restart us (our parent) */
         exit(0); /* just let the timer restart us (our parent) */