qubesd: make sure NOTIFY_SOCKET variable is not propagated

qubesd do start other daemons - make sure they will not try to signal
systemd about it. In some cases such daemons (qubesdb-daemon) behave
differently based on this variable.
This commit is contained in:
Marek Marczykowski-Górecki 2017-05-17 02:11:03 +02:00
parent dc2563271c
commit 4d6d6c913a
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -217,6 +217,8 @@ def main(args=None):
sighandler, loop, signame, server, server_internal)
qubes.utils.systemd_notify()
# make sure children will not inherit this
os.environ.pop('NOTIFY_SOCKET', None)
try:
loop.run_forever()