--- 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: