9c80c66e29a7376671567c452b587ac9c582beae kent Thu Feb 13 16:30:44 2014 -0800 Added fix to newly broken quit command as elegantly suggested by Galt. diff --git src/parasol/paraHub/paraHub.c src/parasol/paraHub/paraHub.c index bfb4e6b..58c3002 100644 --- src/parasol/paraHub/paraHub.c +++ src/parasol/paraHub/paraHub.c @@ -3425,34 +3425,34 @@ listBatches(pm); else if (sameWord(command, "listAllBatches")) listAllBatches(pm); else if (sameWord(command, "listSick")) listSickNodes(pm); else if (sameWord(command, "status")) status(pm); else if (sameWord(command, "pstat")) pstat(line, pm, FALSE); else if (sameWord(command, "pstat2")) pstat(line, pm, TRUE); else if (sameWord(command, "addSpoke")) addSpoke(); else if (sameWord(command, "plan")) plan(pm); + else if (sameWord(command, "quit")) + break; else warn("Unrecognized command %s", command); - if (command != NULL && sameWord(command, "quit")) - break; pmFree(&pm); } endHeartbeat(); killSpokes(); saveJobId(); #ifdef SOON #endif /* SOON */ } void fillInSubnet() /* Parse subnet paramenter if any into subnet variable. */ { char *sns = optionVal("subnet", NULL); if (sns == NULL) sns = optionVal("subNet", NULL);