why is it hanging

This commit is contained in:
Daylin Morgan 2024-09-05 11:05:17 -05:00
parent b83c345693
commit c55dd04671
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -39,11 +39,13 @@ proc runCmdCapt*(cmd: string): tuple[stdout, stderr: string, exitCode: int] =
# if result.exitCode != -1: break
# inc cnt
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] =