Clean up signal and fd handling around fork().
authorDavin McCall <davmac@davmac.org>
Thu, 23 Jun 2016 22:40:28 +0000 (23:40 +0100)
committerDavin McCall <davmac@davmac.org>
Thu, 23 Jun 2016 22:40:28 +0000 (23:40 +0100)
commitf2334b18674289afb132a79849e75fd1b42e1d09
tree34d0968ce14c818c0e6cc540f9fc31b183cae9c8
parent6c430f5ce507a928df589e0008bcdcfe486da9ff
Clean up signal and fd handling around fork().
Mask signals while we are doing dup() since it is allowed to return
EINTR apparently.
Make sure we obtain fds for stdin/stdout/stderr before we exec().
src/service.cc
src/service.h