]> Sergey Matveev's repositories - public-inbox.git/commit
daemon: fix various permissions + daemon issues
authorEric Wong <e@80x24.org>
Fri, 25 Sep 2015 08:21:43 +0000 (08:21 +0000)
committerEric Wong <e@80x24.org>
Fri, 25 Sep 2015 08:41:00 +0000 (08:41 +0000)
commitdcee95db6431f313f7fd1b2408390f3ae3718568
tree54899c27559b32c4aef04bb7b359fa7163ccc364
parent79d8bfedcdd27a9163a64593ff9bac4bb2202fbd
daemon: fix various permissions + daemon issues

When using user-switching in a single process, we must be
careful to not inadvertantly create new Msgmap sqlite3 files.
We must also ensure we set proper permissions on any files
we create.

Additionally, our refactoring was broken as we failed to
actually daemonize or preserve the parent FD in a worker
process.

Finally, default to one worker process since our code may
be fatally broken and it's nice to be able to scale to multiple
cores via SIGTTIN if needed.
lib/PublicInbox/Daemon.pm