mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 10:10:45 -06:00
why is it hanging
This commit is contained in:
parent
b83c345693
commit
c55dd04671
1 changed files with 4 additions and 2 deletions
|
@ -38,12 +38,14 @@ proc runCmdCapt*(cmd: string): tuple[stdout, stderr: string, exitCode: int] =
|
||||||
# result.exitCode = peekExitCode(p)
|
# result.exitCode = peekExitCode(p)
|
||||||
# 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