<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 7 Apr 2020, 22:14 Rafael Fonseca, <<a href="mailto:r4f4rfs@gmail.com" rel="noreferrer noreferrer" target="_blank">r4f4rfs@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Unlike `waitpid`, `virProcessWait` only returns -1 (error) or 0<br>
(success), so comparing that to `pid` will always be false and the<br>
parent will report failure with:<br>
<br>
error : main:851 : Failed to fork as daemon: No such file or directory<br>
<br>
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.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Thanks to Marcin Krol who found the issue and helped me debug it.</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>