mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 18:30:43 -06:00
why is it hanging
This commit is contained in:
parent
b83c345693
commit
c55dd04671
1 changed files with 4 additions and 2 deletions
|
@ -39,11 +39,13 @@ proc runCmdCapt*(cmd: string): tuple[stdout, stderr: string, exitCode: int] =
|
||||||
# if result.exitCode != -1: break
|
# if result.exitCode != -1: break
|
||||||
# inc cnt
|
# inc cnt
|
||||||
echo "process should have started?"
|
echo "process should have started?"
|
||||||
|
echo p.running, "<--running?"
|
||||||
result = (
|
result = (
|
||||||
readAll outstrm,
|
readAll outstrm,
|
||||||
readAll errstrm,
|
readAll errstrm,
|
||||||
waitForExit p
|
-1,
|
||||||
)
|
)
|
||||||
|
result.exitCode = waitForExit p
|
||||||
close p
|
close p
|
||||||
|
|
||||||
proc runCmdCaptWithSpinner*(cmd: string, msg: string = ""): tuple[output, err: string] =
|
proc runCmdCaptWithSpinner*(cmd: string, msg: string = ""): tuple[output, err: string] =
|
||||||
|
|
Loading…
Reference in a new issue