Fix daemonapi flags in startProcess.

This commit is contained in:
cheatfate 2019-08-25 13:53:41 +03:00
parent 4f5e2347d3
commit 53fb5924ea
No known key found for this signature in database
GPG Key ID: 46ADD633A7201F95
1 changed files with 2 additions and 2 deletions

View File

@ -727,11 +727,11 @@ proc newDaemonApi*(flags: set[P2PDaemonFlags] = {},
# Starting daemon process
# echo "Starting ", cmd, " ", args.join(" ")
api.process = startProcess(cmd, "", args, env, {})
api.process = startProcess(cmd, "", args, env, {poStdErrToStdOut})
# Waiting until daemon will not be bound to control socket.
while true:
if not api.process.running():
echo api.process.errorStream.readAll()
echo api.process.outputStream.readAll()
raise newException(DaemonLocalError,
"Daemon executable could not be started!")
let res = await socketExists(api.address)