summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2013-08-10 13:53:03 +0200
committerroot <root@vm-monitoring.spline.inf.fu-berlin.de>2013-08-10 13:53:03 +0200
commita2223374bf0e10bfc8ebd2cd3374e1bbd5327aac (patch)
tree53e36869f09ec02b499829cbeadac8334041580c
parentf0680eb182c6583a0e27124825b8261fa87d48ab (diff)
downloadsocket-notify-a2223374bf0e10bfc8ebd2cd3374e1bbd5327aac.tar.gz
socket-notify-a2223374bf0e10bfc8ebd2cd3374e1bbd5327aac.tar.bz2
socket-notify-a2223374bf0e10bfc8ebd2cd3374e1bbd5327aac.zip
make socket writable for all user
-rw-r--r--socket_notify.py3
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):