File unlink-pidfile-on-error.patch of Package openhpi

--- orig-openhpi-3.0.0/openhpid/openhpid-posix.cpp	2011-10-17 17:57:33.000000000 +0200
+++ openhpi-3.0.0/openhpid/openhpid-posix.cpp	2011-10-19 13:01:46.000000000 +0200
@@ -420,6 +420,7 @@
     INFO("Socket timeout(sec): %d.", sock_timeout);
 
     if (oh_init()) { // Initialize OpenHPI
+	unlink(pidfile);
         CRIT("There was an error initializing OpenHPI. Exiting.");
         return 8;
     }
openSUSE Build Service is sponsored by