summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2011-09-28 21:27:03 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2011-09-28 21:27:03 +0000
commit9cd15713ffeb44a2e5fb75b8ee7427e0b55b9ef1 (patch)
treefdf9f4f6617fee77f8094f8ddb6562f929dd747a /sys-libs/freeipmi/files
parentVersion bump. (diff)
downloadgentoo-2-9cd15713ffeb44a2e5fb75b8ee7427e0b55b9ef1.tar.gz
gentoo-2-9cd15713ffeb44a2e5fb75b8ee7427e0b55b9ef1.tar.bz2
gentoo-2-9cd15713ffeb44a2e5fb75b8ee7427e0b55b9ef1.zip
Version bump, the bmc-watchdog patch is properly upstreamed.
(Portage version: 2.2.0_alpha59/cvs/Linux x86_64)
Diffstat (limited to 'sys-libs/freeipmi/files')
-rw-r--r--sys-libs/freeipmi/files/freeipmi-1.0.6-bmc-watchdog-pidfile.patch44
1 files changed, 0 insertions, 44 deletions
diff --git a/sys-libs/freeipmi/files/freeipmi-1.0.6-bmc-watchdog-pidfile.patch b/sys-libs/freeipmi/files/freeipmi-1.0.6-bmc-watchdog-pidfile.patch
deleted file mode 100644
index f5b0b6f1bc8b..000000000000
--- a/sys-libs/freeipmi/files/freeipmi-1.0.6-bmc-watchdog-pidfile.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-diff --git a/bmc-watchdog/src/Makefile.am b/bmc-watchdog/src/Makefile.am
-index 04c01e2..38d2f7f 100644
---- a/bmc-watchdog/src/Makefile.am
-+++ b/bmc-watchdog/src/Makefile.am
-@@ -10,7 +10,8 @@ AM_CPPFLAGS = \
- -I$(top_srcdir)/common/src/portability \
- -I$(top_srcdir)/libfreeipmi/include \
- -D_GNU_SOURCE \
-- -D_REENTRANT
-+ -D_REENTRANT \
-+ -DLOCALSTATEDIR='"$(localstatedir)"'
-
- sbin_PROGRAMS = bmc-watchdog
-
-diff --git a/bmc-watchdog/src/bmc-watchdog.c b/bmc-watchdog/src/bmc-watchdog.c
-index 566ee65..403bc0a 100644
---- a/bmc-watchdog/src/bmc-watchdog.c
-+++ b/bmc-watchdog/src/bmc-watchdog.c
-@@ -1677,6 +1677,10 @@ _daemon_init ()
- {
- unsigned int i;
- pid_t pid;
-+ FILE *pidfile;
-+
-+ if ( (pidfile = fopen(LOCALSTATEDIR "/run/bmc-watchdog.pid", "w")) == NULL )
-+ _err_exit ("fopen: %s", strerror (errno));
-
- if ((pid = fork ()) < 0)
- _err_exit ("fork: %s", strerror (errno));
-@@ -1690,8 +1694,13 @@ _daemon_init ()
-
- if ((pid = fork ()) < 0)
- _err_exit ("fork: %s", strerror (errno));
-- if (pid)
-+ if (pid) {
-+ /* write the 2nd child PID to the pidfile */
-+ fprintf(pidfile, "%u\n", pid);
-+ fclose(pidfile);
-+
- exit (0); /* 1st child terminates */
-+ }
-
- if (chdir ("/") < 0)
- _err_exit ("chdir: %s", strerror (errno));