fix #708, inherit umask when daemonizing
Merge pull request #738 from flapjack/708_inherit_umask

fix #708, inherit umask when daemonizing