Date: Thu, 5 Aug 2010 18:58:00 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r210880 - head/sbin/hastd Message-ID: <201008051858.o75Iw0ec076456@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008051858.o75Iw0ec076456>