[PATCH] util: virdaemon: fix waiting for child processes
r4f4rfs at gmail.com
Wed Apr 8 03:57:43 UTC 2020
On Tue, 7 Apr 2020, 22:14 Rafael Fonseca, <r4f4rfs at gmail.com> 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
> even though the grandchild process is succesfully running. Note that the
> errno message is misleading: it was last set when trying to find a
> restart state file.
Thanks to Marcin Krol who found the issue and helped me debug it.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the libvir-list