diff options
author | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2013-08-10 13:53:03 +0200 |
---|---|---|
committer | root <root@vm-monitoring.spline.inf.fu-berlin.de> | 2013-08-10 13:53:03 +0200 |
commit | a2223374bf0e10bfc8ebd2cd3374e1bbd5327aac (patch) | |
tree | 53e36869f09ec02b499829cbeadac8334041580c | |
parent | f0680eb182c6583a0e27124825b8261fa87d48ab (diff) | |
download | socket-notify-a2223374bf0e10bfc8ebd2cd3374e1bbd5327aac.tar.gz socket-notify-a2223374bf0e10bfc8ebd2cd3374e1bbd5327aac.tar.bz2 socket-notify-a2223374bf0e10bfc8ebd2cd3374e1bbd5327aac.zip |
make socket writable for all user
-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): |