On Mon, Jul 11, 2016 at 07:06:04PM +0200, Michal Privoznik wrote:
In an unlikely event of execve() failing, the virCommandExec()
function does not report any error, even though checks that are
at the beginning of the function are verbose when failing.
Signed-off-by: Michal Privoznik <mprivozn(a)redhat.com>
---
diff to v1:
- Fixed the test (used virFork() instead of plain fork(),
prolonged the waiting time for child reply, ...)
Good, that was most probably the case. Since the wait occurs only in
the failure scenario I have no problem with it being pretty long. It's
still just a second and that should do, so I think this is perfect
middle ground.
If it wasn't in tests I would suggest using poll() instead of actually
actively polling, but in this case I think it would only complicate
things.
ACK.