From c55dd046715f9f0efc95fbec80cf5a38806a1d9c Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Thu, 5 Sep 2024 11:05:17 -0500 Subject: [PATCH] why is it hanging --- pkgs/oizys-nim/src/oizys/exec.nim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/oizys-nim/src/oizys/exec.nim b/pkgs/oizys-nim/src/oizys/exec.nim index 48680b0..b74a307 100644 --- a/pkgs/oizys-nim/src/oizys/exec.nim +++ b/pkgs/oizys-nim/src/oizys/exec.nim @@ -38,12 +38,14 @@ proc runCmdCapt*(cmd: string): tuple[stdout, stderr: string, exitCode: int] = # result.exitCode = peekExitCode(p) # if result.exitCode != -1: break # inc cnt - echo "process should have started?" + echo "process should have started?" + echo p.running, "<--running?" result = ( readAll outstrm, readAll errstrm, - waitForExit p + -1, ) + result.exitCode = waitForExit p close p proc runCmdCaptWithSpinner*(cmd: string, msg: string = ""): tuple[output, err: string] =