summarylogtreecommitdiffstats
path: root/coherence_pidfile.patch
diff options
context:
space:
mode:
authorMoritz Kaspar Rudert (mortzu)2015-05-21 14:40:42 +0200
committerMoritz Kaspar Rudert (mortzu)2015-05-21 14:40:42 +0200
commita95ff667efbb130fa1d1d94251d636bd8b810c39 (patch)
treea51b6d1c2026f6071d18b06aace0e0f0e05eaa99 /coherence_pidfile.patch
downloadaur-a95ff667efbb130fa1d1d94251d636bd8b810c39.tar.gz
initial commit
Diffstat (limited to 'coherence_pidfile.patch')
-rw-r--r--coherence_pidfile.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/coherence_pidfile.patch b/coherence_pidfile.patch
new file mode 100644
index 000000000000..96be5a0afef7
--- /dev/null
+++ b/coherence_pidfile.patch
@@ -0,0 +1,17 @@
+--- Coherence-0.6.6.2.orig/bin/coherence 2010-01-02 16:10:19.000000000 +0100
++++ Coherence-0.6.6.2/bin/coherence 2013-05-19 01:25:58.069676227 +0200
+@@ -33,6 +33,14 @@
+ if os.fork(): # launch child and...
+ os._exit(0) # kill off parent again.
+ os.umask(077)
++
++ pidfile = open('/run/coherence.pid', 'a+')
++ pidfile.truncate()
++ pidfile.write(str(os.getpid()))
++ pidfile.flush()
++ pidfile.seek(0)
++ pidfile.close()
++
+ null=os.open('/dev/null', os.O_RDWR)
+ for i in range(3):
+ try: