- Timestamp:
- Jul 6, 2015, 8:06:50 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150625/Ohana/src/opihi/lib.shell/SocketOps.c
r32632 r38572 23 23 status = gethostname (myHostname, HOST_NAME_MAX); 24 24 25 fprintf (stderr, "target host: %s, real host: %s\n", hostname, myHostname); 25 if (strcmp (hostname, myHostname)) { 26 fprintf (stderr, "target host: %s, real host: %s\n", hostname, myHostname); 27 fprintf (stderr, "please run on the correct host\n"); 28 exit (2); 29 } 26 30 27 31 GetPortRange (&start, &stop, portinfo); … … 197 201 198 202 host = gethostbyname (hostname); 203 if (!host) { 204 gprint (GP_ERR, "cannot connect to pantasks server %s\n", hostname); 205 exit (3); 206 } 207 199 208 bzero (hostip, 80); 200 209 for (i = 0; i < host[0].h_length; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.
