Author: nextgens
Date: 2009-01-23 12:45:17 +0000 (Fri, 23 Jan 2009)
New Revision: 25234
Modified:
trunk/apps/new_installer/res/unix/run.sh
Log:
new_installer: fix a race-condition which might prevent the node from starting
up (It s still racy but less :p)
Modified: trunk/apps/new_installer/res/unix/run.sh
===================================================================
--- trunk/apps/new_installer/res/unix/run.sh 2009-01-23 12:44:23 UTC (rev
25233)
+++ trunk/apps/new_installer/res/unix/run.sh 2009-01-23 12:45:17 UTC (rev
25234)
@@ -397,6 +397,15 @@
echo "Removed stale pid file: $PIDFILE"
pid=""
fi
+ # Sometimes the pid exists and it's ours!
+ if ! test -f /proc/$pid/cwd/Freenet.pid
+ then
+ # This is a stale pid file.
+ rm -f "$PIDFILE"
+ echo "Removed stale pid file2: $PIDFILE"
+ pid=""
+
+ fi
fi
else
echo "Cannot read $PIDFILE."
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs