SHA256
1
0
forked from pool/openhpi
openhpi/unlink-pidfile-on-error.patch
Thomas Renninger 8c03a4c9a0 - Update to 3.8.0 (fate#325975)
- Remove ipmi plugin, it is deprecated for long time, does not build
  anymore because selector_t changed to struct selector_s in
  openIPMI-devel since 2.0.24. ipmidirect is compiled in and should
  be used anyway.
- Patch mainline:
D openhpi-3.6.0_fix_net-snmp_disable_MD5.patch
- Used spec-cleaner

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/openhpi?expand=0&rev=36
2018-09-26 14:29:13 +00:00

13 lines
551 B
Diff

Index: openhpi-3.8.0/openhpid/openhpid-posix.cpp
===================================================================
--- openhpi-3.8.0.orig/openhpid/openhpid-posix.cpp 2018-09-19 22:47:00.000000000 +0200
+++ openhpi-3.8.0/openhpid/openhpid-posix.cpp 2018-09-25 11:47:01.165511254 +0200
@@ -439,6 +439,7 @@ int main(int argc, char *argv[])
INFO("Socket timeout(sec): %d.", sock_timeout);
if (oh_init()) { // Initialize OpenHPI
+ unlink(pidfile);
CRIT("There was an error initializing OpenHPI. Exiting.");
return 8;
}