mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 03:02:52 +01:00
Make sure to set a sane umask.
This commit is contained in:
parent
38784b9ae6
commit
560434616a
@ -294,6 +294,8 @@ if __name__ == '__main__':
|
||||
signal.signal(signal.SIGHUP, signal.SIG_IGN)
|
||||
log.info('Completed daemonization. Current PID: %s', os.getpid())
|
||||
|
||||
os.umask(077)
|
||||
|
||||
# Let's write the PID file. This has to go after daemonization, obviously.
|
||||
pidFile = conf.supybot.pidFile()
|
||||
if pidFile:
|
||||
|
Loading…
Reference in New Issue
Block a user