Re: [PATCH] util: virdaemon: fix waiting for child processes

2020-04-08 Thread Ján Tomko
On a Wednesday in 2020, Rafael Fonseca wrote: On Tue, 7 Apr 2020, 22:14 Rafael Fonseca, wrote: Unlike `waitpid`, `virProcessWait` only returns -1 (error) or 0 (success), so comparing that to `pid` will always be false and the parent will report failure with: error : main:851 : Failed to fork

Re: [PATCH] util: virdaemon: fix waiting for child processes

2020-04-07 Thread Rafael Fonseca
On Tue, 7 Apr 2020, 22:14 Rafael Fonseca, wrote: > Unlike `waitpid`, `virProcessWait` only returns -1 (error) or 0 > (success), so comparing that to `pid` will always be false and the > parent will report failure with: > > error : main:851 : Failed to fork as daemon: No such file or directory >

[PATCH] util: virdaemon: fix waiting for child processes

2020-04-07 Thread Rafael Fonseca
Unlike `waitpid`, `virProcessWait` only returns -1 (error) or 0 (success), so comparing that to `pid` will always be false and the parent will report failure with: error : main:851 : Failed to fork as daemon: No such file or directory even though the grandchild process is succesfully running.