aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2021-08-04 15:10:56 +1000
committeronefang2021-08-04 15:10:56 +1000
commit9b0dff22e6c08c71146ae330c50ac9a3a185489d (patch)
tree560d6b9b02d7f87e83506e4562bdd18f24c96d8f
parentHalve the bulkSims value each time we wait. (diff)
downloadopensim-SC-9b0dff22e6c08c71146ae330c50ac9a3a185489d.zip
opensim-SC-9b0dff22e6c08c71146ae330c50ac9a3a185489d.tar.gz
opensim-SC-9b0dff22e6c08c71146ae330c50ac9a3a185489d.tar.bz2
opensim-SC-9b0dff22e6c08c71146ae330c50ac9a3a185489d.tar.xz
Don't exit panes, kill them, and quicker.
Diffstat (limited to '')
-rw-r--r--src/sledjchisl/sledjchisl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c
index 698a251..230371b 100644
--- a/src/sledjchisl/sledjchisl.c
+++ b/src/sledjchisl/sledjchisl.c
@@ -8270,10 +8270,11 @@ fcgiDone:
8270 { 8270 {
8271 simData *simd = ini->get(ini, "SIM DATA", NULL, false); 8271 simData *simd = ini->get(ini, "SIM DATA", NULL, false);
8272 8272
8273 // NOTE - these sleeps are guesses, seems to work on my super desktop during testing.
8273 while (checkSimIsRunning(simd->tab)) 8274 while (checkSimIsRunning(simd->tab))
8274 sleep(1); 8275 usleep(100000);
8275 sleep(1); 8276 usleep(10000);
8276 sendTmuxCmd(simd->paneID, "exit"); 8277 doTmuxCmd("kill-pane -t %s", simd->paneID);
8277 I("Tmux tab [%d:%s](pane %d) tmux ID %s, from %s/sim%d - %s has stopped.", window, type, pane, simd->paneID, scTemp, count, simd->name); 8278 I("Tmux tab [%d:%s](pane %d) tmux ID %s, from %s/sim%d - %s has stopped.", window, type, pane, simd->paneID, scTemp, count, simd->name);
8278 8279
8279 count++; 8280 count++;