Revert "try to fix "too many open files" error"
This reverts commit 149ac0df06
.
This commit is contained in:
parent
149ac0df06
commit
f1d917d49e
|
@ -34,10 +34,8 @@ proc asyncExecCmd*(command: string): Future[string] =
|
||||||
(result, exitCode) = execCmdEx(command)
|
(result, exitCode) = execCmdEx(command)
|
||||||
if exitCode != 0:
|
if exitCode != 0:
|
||||||
failureEvent.trigger()
|
failureEvent.trigger()
|
||||||
successEvent.unregister()
|
|
||||||
else:
|
else:
|
||||||
successEvent.trigger()
|
successEvent.trigger()
|
||||||
failureEvent.unregister()
|
|
||||||
let flowVar = spawn execCmdBackground(successEvent, failureEvent, command)
|
let flowVar = spawn execCmdBackground(successEvent, failureEvent, command)
|
||||||
proc successCallback(fd: AsyncFD): bool =
|
proc successCallback(fd: AsyncFD): bool =
|
||||||
future.complete(^flowVar)
|
future.complete(^flowVar)
|
||||||
|
|
Loading…
Reference in New Issue