diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-07-23 17:41:23 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-07-23 18:08:16 +0100 |
commit | f9e484ca4559063de82ec153f742271475916fa8 (patch) | |
tree | 9a318b97d6e539241f6d9319fe606b90b290d476 /src/launch-libvirt.c | |
parent | 793a482015ec670186ac53b2c753f299ed27307c (diff) | |
download | libguestfs-f9e484ca4559063de82ec153f742271475916fa8.tar.gz libguestfs-f9e484ca4559063de82ec153f742271475916fa8.tar.xz libguestfs-f9e484ca4559063de82ec153f742271475916fa8.zip |
launch: libvirt: You can't set O_CLOEXEC flag using fcntl + F_SETFL.
And in any case there is no point, since proto.c already sets the
SOCK_CLOEXEC flag (using accept4) on this socket.
The code now matches the code in launch-appliance.c.
Diffstat (limited to 'src/launch-libvirt.c')
-rw-r--r-- | src/launch-libvirt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/launch-libvirt.c b/src/launch-libvirt.c index bedd5ea1..788ca17c 100644 --- a/src/launch-libvirt.c +++ b/src/launch-libvirt.c @@ -312,7 +312,7 @@ launch_libvirt (guestfs_h *g, const char *libvirt_uri) } g->sock = r; /* This is the accepted data socket. */ - if (fcntl (g->sock, F_SETFL, O_NONBLOCK|O_CLOEXEC) == -1) { + if (fcntl (g->sock, F_SETFL, O_NONBLOCK) == -1) { perrorf (g, "fcntl"); goto cleanup; } |