Fix daemonapi flags in startProcess.
This commit is contained in:
parent
4f5e2347d3
commit
53fb5924ea
|
@ -727,11 +727,11 @@ proc newDaemonApi*(flags: set[P2PDaemonFlags] = {},
|
||||||
|
|
||||||
# Starting daemon process
|
# Starting daemon process
|
||||||
# echo "Starting ", cmd, " ", args.join(" ")
|
# 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.
|
# Waiting until daemon will not be bound to control socket.
|
||||||
while true:
|
while true:
|
||||||
if not api.process.running():
|
if not api.process.running():
|
||||||
echo api.process.errorStream.readAll()
|
echo api.process.outputStream.readAll()
|
||||||
raise newException(DaemonLocalError,
|
raise newException(DaemonLocalError,
|
||||||
"Daemon executable could not be started!")
|
"Daemon executable could not be started!")
|
||||||
let res = await socketExists(api.address)
|
let res = await socketExists(api.address)
|
||||||
|
|
Loading…
Reference in New Issue