[Opendnssec-user] SIGPIPE kills ods-enforcerd in response to CLI commands
Yuri Schaeffer
yuri at nlnetlabs.nl
Thu Nov 30 07:57:33 UTC 2017
Hi Peter,
> If I interrupt the output of ods-enforcer, the server gets killed with
> SIGPIPE. eg:
> I've seen this on FreeBSD-11 and 12. Anyone else see this or is it
> just a
> FreeBSD thing?
I came across this as well and have it fixed in one of the development
branches. It will be in a future release (TBD).
Meanwhile if you want you can apply the following patch:
diff --git a/enforcer/src/daemon/engine.c b/enforcer/src/daemon/engine.c
index 3ed311612..c6604559e 100644
--- a/enforcer/src/daemon/engine.c
+++ b/enforcer/src/daemon/engine.c
@@ -632,6 +632,7 @@ engine_init(engine_type* engine, int daemonize)
sigaction(SIGHUP, &action, NULL);
sigaction(SIGTERM, &action, NULL);
sigaction(SIGINT, &action, NULL);
+ sigaction(SIGPIPE, &action, NULL);
engine->dbcfg_list = NULL;
}
Regards,
Yuri
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://lists.opendnssec.org/pipermail/opendnssec-user/attachments/20171130/3de1efed/attachment.bin>
More information about the Opendnssec-user
mailing list