diff options
-rw-r--r-- | socket_notify.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/socket_notify.py b/socket_notify.py index 5b651a5..6a56e71 100644 --- a/socket_notify.py +++ b/socket_notify.py @@ -47,7 +47,10 @@ class Monitor(asyncore.dispatcher): except OSError: pass + old_mask = os.umask(0o000) self.bind(path) + os.umask(old_mask) + self.listen(5) def handle_accept(self): |