Do not set umask to zero by default

This is potentially dangerous. The user should be responsible for specifying a umask of 0 (or any other value) when running the daemon.

Check out this answer on StackOverflow: http://stackoverflow.com/a/7142522/315562 .