]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc_controller.c: don't ignore failed "accept"
authorJim Meyering <meyering@redhat.com>
Thu, 20 May 2010 12:30:36 +0000 (14:30 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 20 May 2010 17:12:39 +0000 (19:12 +0200)
commit1f6fc519cdf3039fa15b080ea9f2afbc177d123c
tree4b7ccdef9b66d1cbd590bcf6dd10bb1060bbe614
parent348c6fc0ab700135f0f5ab434ad2b61958cf0f95
lxc_controller.c: don't ignore failed "accept"

* src/lxc/lxc_controller.c (ignorable_epoll_accept_errno): New function.
(lxcControllerMain): Handle a failed accept carefully:
most errno values indicate legitimate failure and must be fatal.
However, ignore a special case: that in which an incoming client quits
between the poll() indicating its presence, and our accept() which
is trying to process it.
src/lxc/lxc_controller.c