projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ad847d
)
node.py: make twistd.pid world-readable, so stats-gathering tools (specifically memor...
author
Brian Warner
<warner@allmydata.com>
Thu, 27 Mar 2008 01:37:54 +0000
(18:37 -0700)
committer
Brian Warner
<warner@allmydata.com>
Thu, 27 Mar 2008 01:37:54 +0000
(18:37 -0700)
src/allmydata/node.py
patch
|
blob
|
history
diff --git
a/src/allmydata/node.py
b/src/allmydata/node.py
index 1bb9d708353c5f17eb7ced8a444b1ae115ded7fd..e9481b84cd8fe47cc0deb2a492918e6ca8efd3fb 100644
(file)
--- a/
src/allmydata/node.py
+++ b/
src/allmydata/node.py
@@
-150,6
+150,10
@@
class Node(service.MultiService):
def startService(self):
# Note: this class can be started and stopped at most once.
self.log("Node.startService")
+ try:
+ os.chmod("twistd.pid", 0644)
+ except EnvironmentError:
+ pass
# Delay until the reactor is running.
eventual.eventually(self._startService)