Changeset 42173
- Timestamp:
- Apr 18, 2022, 10:26:42 AM (4 years ago)
- Location:
- branches/eam_branches/ipp-20220316/Ohana/src/opihi
- Files:
-
- 4 edited
-
include/pcontrol.h (modified) (1 diff)
-
pcontrol/CheckSystem.c (modified) (2 diffs)
-
pcontrol/pcontrol.c.in (modified) (3 diffs)
-
pcontrol/test/linesize.sh (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20220316/Ohana/src/opihi/include/pcontrol.h
r36623 r42173 341 341 342 342 void pcontrol_exit (int n); 343 void QuitCheckSystemThread (void); 343 344 344 345 // Job *FindJobByID (IDtype JobID, int *StackID); -
branches/eam_branches/ipp-20220316/Ohana/src/opihi/pcontrol/CheckSystem.c
r39457 r42173 4 4 static struct timeval lastlive = {0, 0}; 5 5 static RunLevels RunLevel = PCONTROL_RUN_NONE; 6 7 static int CheckSystemThreadRuns = TRUE; 8 9 void QuitCheckSystemThread (void) { 10 CheckSystemThreadRuns = FALSE; 11 } 12 6 13 7 14 RunLevels SetRunLevel (RunLevels level) { … … 67 74 gprintInit (); 68 75 69 while ( 1) {76 while (CheckSystemThreadRuns) { 70 77 // stop here if the user-thread requests (no objects in flight) 71 78 TestCheckPoint (); -
branches/eam_branches/ipp-20220316/Ohana/src/opihi/pcontrol/pcontrol.c.in
r39457 r42173 9 9 # define opihi_rcfile ".pcontrolrc" 10 10 11 # ifdef THREADED 12 static pthread_t clientsThread; 13 # endif 14 11 15 /* program-dependent initialization */ 12 16 void program_init (int *argc, char **argv) { … … 14 18 OHANA_UNUSED_PARAM(argv); 15 19 16 # ifdef THREADED17 pthread_t clientsThread;18 # endif19 20 20 auto_break = TRUE; 21 21 … … 83 83 SetRunLevel (PCONTROL_RUN_HOSTS); 84 84 DownHosts (); 85 86 QuitCheckSystemThread(); pthread_join (clientsThread, NULL); 87 85 88 ConfigFree (); 86 87 89 FreeBasic (); 88 90 FreePcontrol (); -
branches/eam_branches/ipp-20220316/Ohana/src/opihi/pcontrol/test/linesize.sh
r18114 r42173 27 27 28 28 for i 1 10 29 job echo $inline 729 job echo $inline6 30 30 end 31 31 … … 34 34 for i 1 10 35 35 stdout $i -var outline 36 strlen "$inline 7" Nin36 strlen "$inline6" Nin 37 37 strlen "$outline" Nout 38 38
Note:
See TracChangeset
for help on using the changeset viewer.
