bitbake: bitbake: prserv: do not clear umask when daemonizing

Clearing the umask when daemonizing is not the correct thing
to do, as it will create files writable by anyone by default.
For instance the pid file was being created with mode 777.
This could also potentially affect the sqlite database.
Better let the calling process decide on the umask.

[YOCTO #9036]

(Bitbake rev: ff6d3f53a4504eae7ec4c190b9f7595b09aed017)

Signed-off-by: Diego Santa Cruz <Diego.SantaCruz@spinetix.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Diego Santa Cruz 2016-02-02 13:08:05 +01:00 committed by Richard Purdie
parent abf8a8fbc3
commit 56454f6fb2
1 changed files with 0 additions and 1 deletions

View File

@ -216,7 +216,6 @@ class PRServer(SimpleXMLRPCServer):
def cleanup_handles(self):
signal.signal(signal.SIGINT, self.sigint_handler)
signal.signal(signal.SIGTERM, self.sigterm_handler)
os.umask(0)
os.chdir("/")
sys.stdout.flush()