- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/Ohana
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/Ohana merged eligible /branches/eam_branches/Ohana.20100407 27635-27772 /branches/pap_delete/Ohana 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/simtest_nebulous_branches/Ohana/src/opihi/pcontrol/StartHost.c
r12840 r27840 14 14 if (VarConfig ("SHELL", "%s", shell) == NULL) strcpy (shell, "pclient"); 15 15 16 if (VerboseMode()) gprint (GP_ERR, "starting host within thread %d\n", pthread_self()); 17 16 #ifndef __APPLE__ 17 if (VerboseMode()) gprint (GP_ERR, "starting host within thread %lld\n", (long long) pthread_self()); 18 #endif 18 19 pid = rconnect (command, host[0].hostname, shell, stdio); 19 20 if (!pid) { … … 21 22 if (VerboseMode()) gprint (GP_ERR, "failure to start %s\n", host[0].hostname); 22 23 gettimeofday (&now, (void *) NULL); 23 if (ZTIME(host[0].next try) || ZTIME(host[0].lasttry)) {24 if (ZTIME(host[0].next_start_try) || ZTIME(host[0].last_start_try)) { 24 25 /* reset retry period if either is zero */ 25 26 delta = RETRY_BASE; 26 27 } else { 27 delta = 2*DTIME (host[0].nexttry, host[0].lasttry);28 delta = MAX(1.0, 2*DTIME (host[0].next_start_try, host[0].last_start_try)); 28 29 } 29 host[0].next try.tv_sec = now.tv_sec + delta;30 host[0].next try.tv_usec = now.tv_usec;31 host[0].last try.tv_sec = now.tv_sec;32 host[0].last try.tv_usec = now.tv_usec;30 host[0].next_start_try.tv_sec = now.tv_sec + delta; 31 host[0].next_start_try.tv_usec = now.tv_usec; 32 host[0].last_start_try.tv_sec = now.tv_sec; 33 host[0].last_start_try.tv_usec = now.tv_usec; 33 34 PutHost (host, PCONTROL_HOST_DOWN, STACK_BOTTOM); 34 35 return (FALSE); 35 36 } 36 host[0].nexttry.tv_sec = 0; 37 host[0].nexttry.tv_usec = 0; 38 host[0].lasttry.tv_sec = 0; 39 host[0].lasttry.tv_usec = 0; 37 host[0].next_start_try.tv_sec = 0; 38 host[0].next_start_try.tv_usec = 0; 39 host[0].last_start_try.tv_sec = 0; 40 host[0].last_start_try.tv_usec = 0; 41 42 // set the connection time 43 gettimeofday (&host[0].connect_time, (void *) NULL); 40 44 41 45 host[0].stdin_fd = stdio[0];
Note:
See TracChangeset
for help on using the changeset viewer.
