From 9b0dff22e6c08c71146ae330c50ac9a3a185489d Mon Sep 17 00:00:00 2001 From: onefang Date: Wed, 4 Aug 2021 15:10:56 +1000 Subject: Don't exit panes, kill them, and quicker. --- src/sledjchisl/sledjchisl.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') 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: { simData *simd = ini->get(ini, "SIM DATA", NULL, false); + // NOTE - these sleeps are guesses, seems to work on my super desktop during testing. while (checkSimIsRunning(simd->tab)) - sleep(1); - sleep(1); - sendTmuxCmd(simd->paneID, "exit"); + usleep(100000); + usleep(10000); + doTmuxCmd("kill-pane -t %s", simd->paneID); 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); count++; -- cgit v1.1