[ucarp/f17] Fix for crash.

Jon Ciesla limb at fedoraproject.org
Thu Oct 25 14:35:49 UTC 2012


commit 3080009b6d97c569e20c259d2897b56acac5ca4b
Author: Jon Ciesla <limburgher at gmail.com>
Date:   Thu Oct 25 09:34:21 2012 -0500

    Fix for crash.

 ucarp-1.5.2-sighup.patch |   10 ++++++++++
 ucarp.spec               |    7 ++++++-
 2 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/ucarp-1.5.2-sighup.patch b/ucarp-1.5.2-sighup.patch
new file mode 100644
index 0000000..8135233
--- /dev/null
+++ b/ucarp-1.5.2-sighup.patch
@@ -0,0 +1,10 @@
+--- src/carp.c~	2010-01-31 15:59:12.000000000 -0600
++++ src/carp.c	2012-10-25 09:25:54.949976635 -0500
+@@ -762,6 +762,7 @@
+     
+     if (shutdown_at_exit != 0) {
+         (void) signal(SIGINT, sighandler_exit);
++        (void) signal(SIGHUP, sighandler_exit);
+         (void) signal(SIGQUIT, sighandler_exit);
+         (void) signal(SIGTERM, sighandler_exit);
+     }
diff --git a/ucarp.spec b/ucarp.spec
index 140d261..cbfde73 100644
--- a/ucarp.spec
+++ b/ucarp.spec
@@ -1,7 +1,7 @@
 Summary: Common Address Redundancy Protocol (CARP) for Unix
 Name: ucarp
 Version: 1.5.2
-Release: 3%{?dist}
+Release: 3.1%{?dist}
 # See the COPYING file which details everything
 License: MIT and BSD
 Group: System Environment/Daemons
@@ -13,6 +13,7 @@ Source3: vip-common.conf
 Source4: vip-up
 Source5: vip-down
 #Source6: vip-helper.sh
+Patch0: ucarp-1.5.2-sighup.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 Requires(post): /sbin/chkconfig
 Requires(preun): /sbin/chkconfig, /sbin/service
@@ -34,6 +35,7 @@ need for any dedicated extra network link between redundant hosts.
 %prep
 %setup -q
 
+%patch0 -p0
 
 %build
 %configure
@@ -98,6 +100,9 @@ fi
 %{_sbindir}/ucarp
 
 %changelog
+* Thu Oct 25 2012 Jon Ciesla <limburgher at gmail.com> - 1.5.2-3.1
+- Patch for crash.
+
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.5.2-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list