]> git.ipfire.org Git - thirdparty/libvirt.git/commit
utils: Mark inpipe as non-blocking
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Thu, 25 Jul 2019 18:22:08 +0000 (14:22 -0400)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 26 Jul 2019 09:30:54 +0000 (10:30 +0100)
commit7f940d74972485d23d8d0bc04a72e5b689076a8f
tree1438ed9eb0c29222367ae311e629139bf352945a
parent8d2d8a6bea1174a35ee727b08153b18d99cdd65c
utils: Mark inpipe as non-blocking

Mark a virCommand's inpipe (write-end of pipe) as non-blocking so that it
will never block when we were to try to write too many bytes to it while
it doesn't have the capacity to hold them.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/util/vircommand.c