1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00

Reset signal handlers after fork().

MFC after:	1 month
This commit is contained in:
Pawel Jakub Dawidek 2010-08-05 18:58:00 +00:00
parent 005f438bf5
commit a2ef0636b4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210880
2 changed files with 6 additions and 0 deletions

View File

@ -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();

View File

@ -340,6 +340,9 @@ hastd_secondary(struct hast_resource *res, struct nv *nvin)
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");