Changeset 42389 for trunk/Ohana/src/opihi/pcontrol
- Timestamp:
- Feb 8, 2023, 12:17:35 PM (3 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
src/opihi/pcontrol/CheckSystem.c (modified) (2 diffs)
-
src/opihi/pcontrol/pcontrol.c.in (modified) (3 diffs)
-
src/opihi/pcontrol/test/linesize.sh (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
trunk/Ohana/src/opihi/pcontrol/CheckSystem.c
r39457 r42389 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 (); -
trunk/Ohana/src/opihi/pcontrol/pcontrol.c.in
r39457 r42389 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 (); -
trunk/Ohana/src/opihi/pcontrol/test/linesize.sh
r18114 r42389 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.
