]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Prevent streams from becoming libvirtd controlling TTY
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 13 Mar 2013 17:22:28 +0000 (17:22 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 14 Mar 2013 12:42:21 +0000 (12:42 +0000)
commitb2878ed860ceceec3cd6481424fed0b543b687cd
tree339d18463dfda8e78870b80d2614418c7bd1636c
parent32bd699f5547841677608577a5c9c597ed0f6647
Prevent streams from becoming libvirtd controlling TTY

When opening a stream to a device which is a TTY, that device
may become the controlling TTY of libvirtd, if libvirtd was
daemonized. This in turn means when the other end of the stream
closes, libvirtd gets SIGHUP, causing it to reload its config.
Prevent this by forcing O_NOCTTY on all streams that are opened

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/fdstream.c