svn commit: r210880 - head/sbin/hastd
Pawel Jakub Dawidek
pjd at FreeBSD.org
Thu Aug 5 18:58:01 UTC 2010
Author: pjd
Date: Thu Aug 5 18:58:00 2010
New Revision: 210880
URL: http://svn.freebsd.org/changeset/base/210880
Log:
Reset signal handlers after fork().
MFC after: 1 month
Modified:
head/sbin/hastd/primary.c
head/sbin/hastd/secondary.c
Modified: head/sbin/hastd/primary.c
==============================================================================
--- head/sbin/hastd/primary.c Thu Aug 5 18:56:24 2010 (r210879)
+++ head/sbin/hastd/primary.c Thu Aug 5 18:58:00 2010 (r210880)
@@ -761,6 +761,9 @@ hastd_primary(struct hast_resource *res)
setproctitle("%s (primary)", res->hr_name);
+ signal(SIGHUP, SIG_DFL);
+ signal(SIGCHLD, SIG_DFL);
+
init_local(res);
if (init_remote(res, NULL, NULL))
sync_start();
Modified: head/sbin/hastd/secondary.c
==============================================================================
--- head/sbin/hastd/secondary.c Thu Aug 5 18:56:24 2010 (r210879)
+++ head/sbin/hastd/secondary.c Thu Aug 5 18:58:00 2010 (r210880)
@@ -340,6 +340,9 @@ hastd_secondary(struct hast_resource *re
setproctitle("%s (secondary)", res->hr_name);
+ signal(SIGHUP, SIG_DFL);
+ signal(SIGCHLD, SIG_DFL);
+
/* Error in setting timeout is not critical, but why should it fail? */
if (proto_timeout(res->hr_remotein, 0) < 0)
pjdlog_errno(LOG_WARNING, "Unable to set connection timeout");
More information about the svn-src-head
mailing list