chiark / gitweb /
nspawn: assume stdout is always writable if it does not support epoll
authorMichal Schmidt <mschmidt@redhat.com>
Fri, 25 Jan 2013 23:16:13 +0000 (00:16 +0100)
committerMichal Schmidt <mschmidt@redhat.com>
Fri, 25 Jan 2013 23:16:13 +0000 (00:16 +0100)
commitf2956e80c99cd41ca6bbbe41b09e01b234ca8778
tree3658e3a1e80f6514cc8687e98fffb4c79ba9ad76
parente45460d666512db4f908f86e8722d7932dcf0f82
nspawn: assume stdout is always writable if it does not support epoll

stdout can be redirected to a regular file. Regular files don't support epoll.
nspawn failed with: "Failed to register fds in epoll: Operation not permitted".

If stdout does not support epoll, assume it's always writable.
src/nspawn/nspawn.c