blob: 96be5a0afef7547e0b3fb736127316cf34f43162 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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:
|