mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
Set close-on-exec flag for signal pipe
This commit is contained in:
parent
e266ded2f6
commit
049ff4e572
@ -1,3 +1,7 @@
|
||||
Wed Feb 20 10:42:27 EST 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
* qemud/qemud.c: Set close-on-exec flag for signal pipe
|
||||
|
||||
Wed Feb 20 10:39:27 EST 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
* configure.in: Added checks for LVM tools
|
||||
|
@ -2089,7 +2089,9 @@ int main(int argc, char **argv) {
|
||||
|
||||
if (pipe(sigpipe) < 0 ||
|
||||
qemudSetNonBlock(sigpipe[0]) < 0 ||
|
||||
qemudSetNonBlock(sigpipe[1]) < 0) {
|
||||
qemudSetNonBlock(sigpipe[1]) < 0 ||
|
||||
qemudSetCloseExec(sigpipe[0]) < 0 ||
|
||||
qemudSetCloseExec(sigpipe[1]) < 0) {
|
||||
qemudLog(QEMUD_ERR, _("Failed to create pipe: %s"),
|
||||
strerror(errno));
|
||||
goto error1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user