diff options
Diffstat (limited to 'pseudo_server.c')
-rw-r--r-- | pseudo_server.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pseudo_server.c b/pseudo_server.c index 12159e7..65102dd 100644 --- a/pseudo_server.c +++ b/pseudo_server.c @@ -153,6 +153,11 @@ pseudo_server_start(int daemonize) { char *lockpath; struct flock lock_data; + /* we want a sane umask for server operations; this is what + * would control the modes of database files, sockets, and so + * on. + */ + umask(022); /* parent process will wait for child process, or until it gets * SIGUSR1, or until too much time has passed. */ if (daemonize) { |