Changeset 32632 for trunk/Ohana/src/opihi/pantasks/pantasks_server.c.in
- Timestamp:
- Nov 8, 2011, 2:54:20 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pantasks/pantasks_server.c.in
r27999 r32632 18 18 int main (int argc, char **argv) { 19 19 20 char hostname[256], portinfo[256]; 20 21 char log_stdout[1024], log_stderr[1024]; 21 22 pthread_t JobsAndTasksThread; … … 100 101 pass them to the ListenClient thread */ 101 102 103 /* find the defined server hostname */ 104 if (VarConfig ("PANTASKS_SERVER", "%s", hostname) == NULL) { 105 gprint (GP_ERR, "pantasks server host undefined\n"); 106 exit (31); 107 } 108 109 /* is a port range defined? otherwise use the default */ 110 memset (portinfo, 0, 256); 111 VarConfig ("PANTASKS_SERVER_PORT", "%s", portinfo); 112 102 113 /* create the listening socket */ 103 InitSocket = InitServerSocket (&Address );114 InitSocket = InitServerSocket (&Address, hostname, portinfo); 104 115 105 116 InitPassword ();
Note:
See TracChangeset
for help on using the changeset viewer.
