mirror of
https://github.com/ipmitool/ipmitool.git
synced 2026-01-21 16:42:19 +08:00
Author: Jan Safranek <jsafrane@redhat.com>
Date: Mon Aug 13 14:35:28 2012 +0200
Fixed ipmievd start under systemd.
Systemd init system starts services with parent PID=1. Still, it is expected
that the daemon forks and exits with nozero exit status, if its initialization
fails.
This commit is contained in:
parent
2d725c2cd6
commit
700ee7d27d
@ -549,10 +549,6 @@ ipmi_start_daemon(struct ipmi_intf *intf)
|
|||||||
sigset_t sighup;
|
sigset_t sighup;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* if we are started from init no need to become daemon */
|
|
||||||
if (getppid() == 1)
|
|
||||||
return;
|
|
||||||
|
|
||||||
#ifdef SIGHUP
|
#ifdef SIGHUP
|
||||||
sigemptyset(&sighup);
|
sigemptyset(&sighup);
|
||||||
sigaddset(&sighup, SIGHUP);
|
sigaddset(&sighup, SIGHUP);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user