* Mon Sep 13 2010 Jiri Skala <jskala@redhat.com> - 2.0.5-3
- fixes #629740 - acpid doesn't fork, but systemd unit file claims otherwise
This commit is contained in:
parent
1f2e7eb6c4
commit
792aaf025e
12
acpid-2.0.5-forking.patch
Normal file
12
acpid-2.0.5-forking.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -up acpid-2.0.5/acpid.c.forking acpid-2.0.5/acpid.c
|
||||
--- acpid-2.0.5/acpid.c.forking 2010-03-28 15:54:23.000000000 +0200
|
||||
+++ acpid-2.0.5/acpid.c 2010-09-10 13:38:06.207131183 +0200
|
||||
@@ -333,7 +333,7 @@ daemonize(void)
|
||||
pid_t pid, sid;
|
||||
|
||||
/* already a daemon */
|
||||
- if ( getppid() == 1 ) return 0;
|
||||
+ //if ( getppid() == 1 ) return 0;
|
||||
|
||||
/* fork off the parent process */
|
||||
pid = fork();
|
@ -1,7 +1,7 @@
|
||||
Summary: ACPI Event Daemon
|
||||
Name: acpid
|
||||
Version: 2.0.5
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: GPLv2+
|
||||
Group: System Environment/Daemons
|
||||
Source: http://tedfelix.com/linux/acpid-%{version}.tar.gz
|
||||
@ -12,6 +12,7 @@ Source4: acpid.power.sh
|
||||
Source5: acpid.service
|
||||
|
||||
Patch1: acpid-2.0.2-makefile.patch
|
||||
Patch2: acpid-2.0.5-forking.patch
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
ExclusiveArch: ia64 x86_64 %{ix86}
|
||||
@ -30,6 +31,7 @@ acpid is a daemon that dispatches ACPI events to user-space programs.
|
||||
%setup -q
|
||||
|
||||
%patch1 -p1 -b .makefile
|
||||
%patch2 -p1 -b .forking
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags}
|
||||
@ -111,6 +113,9 @@ if [ "$1" -ge "1" ]; then
|
||||
fi
|
||||
|
||||
%changelog
|
||||
* Mon Sep 13 2010 Jiri Skala <jskala@redhat.com> - 2.0.5-3
|
||||
- fixes #629740 - acpid doesn't fork, but systemd unit file claims otherwise
|
||||
|
||||
* Wed Aug 11 2010 Jiri Skala <jskala@redhat.com> - 2.0.5-2
|
||||
- fixes #617317 - Providing native systemd file for upcoming F14 Feature Systemd
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user