]> git.ipfire.org Git - thirdparty/libvirt.git/commit
command: don't mix RunAsync and daemons
authorEric Blake <eblake@redhat.com>
Wed, 23 Mar 2011 23:42:27 +0000 (17:42 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 25 Mar 2011 11:34:48 +0000 (05:34 -0600)
commit4e808602f14019449d3cea8b3d9aaf7513c34346
treed4e14b81c96ac63329a0d106f07cf55982afa965
parent208a044a547c2339e426e3ae58a8cb27807f68f2
command: don't mix RunAsync and daemons

It doesn't make sense to run a daemon without synchronously
waiting for the child process to reply whether the daemon has
been kicked off and pidfile written yet.

* src/util/command.c (VIR_EXEC_RUN_SYNC): New constant.
(virCommandRun): Set temporary flag.
(virCommandRunAsync): Use it to prevent async runs of intermediate
child when spawning asynchronous daemon grandchild.
src/util/command.c