- Timestamp:
- Dec 10, 2012, 12:07:22 PM (14 years ago)
- Location:
- branches/sc_branches/pantasks_condor
- Files:
-
- 1 edited
- 1 copied
-
. (copied) (copied from trunk/Ohana/src/opihi ) (1 prop)
-
pantasks/controller_host.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/sc_branches/pantasks_condor
- Property svn:mergeinfo set to
-
branches/sc_branches/pantasks_condor/pantasks/controller_host.c
r23530 r34783 1 # include "pantasks.h" 1 #include "pantasks.h" 2 3 #ifdef IPP_CONDOR 4 #include "ipp_condor.h" 5 #endif 2 6 3 7 int controller_host (int argc, char **argv) { 8 int N, max_threads; 4 9 5 int N, status, max_threads; 6 char command[1024]; 7 IOBuffer buffer; 10 fprintf(stderr, "in controller_host\n"); 8 11 9 12 max_threads = 0; … … 16 19 if (argc != 3) goto usage; 17 20 if (max_threads && strcasecmp (argv[1], "ADD")) goto usage; 21 22 char command[1024]; 23 IOBuffer buffer; 24 int status; 18 25 19 26 /* start controller connection (if needed) */ … … 28 35 if (!strcasecmp (argv[1], "ADD")) { 29 36 AddHost (argv[2], max_threads); 30 } 37 } 31 38 32 39 if (!strcasecmp (argv[1], "DELETE")) { … … 46 53 47 54 FreeIOBuffer (&buffer); 55 56 #ifdef IPP_CONDOR 57 # ifdef DEBUG 58 printf("Showing hosts requirements\n"); 59 printf("[%s]\n", get_hosts_requirements()); 60 # endif 61 #endif 48 62 return (TRUE); 49 63 50 64 usage: 51 65 gprint (GP_LOG, "USAGE: controller host (command) (hostname)\n");
Note:
See TracChangeset
for help on using the changeset viewer.
