2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Force SIGHUP to be in state SIG_DFL when starting, since Solaris would break

that, if run from under cron.
This commit is contained in:
Michael Sawyer
2000-06-27 18:49:14 +00:00
parent 9006ddc64a
commit d8afbf2f30

View File

@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: app.c,v 1.16 2000/06/22 21:58:29 tale Exp $ */
/* $Id: app.c,v 1.17 2000/06/27 18:49:14 mws Exp $ */
#include <config.h>
@@ -149,6 +149,15 @@ isc_app_start(void) {
if (result != ISC_R_SUCCESS)
return (result);
/*
* Delivery of a signal in SIG_IGN state will not cause sigwait()
* to return, and, on Solaris programs started from cron inheret
* a IGN'ed SIGHUP. Fix it.
*/
result = handle_signal(SIGHUP, SIG_DFL);
if (result != ISC_R_SUCCESS)
return (result);
/*
* Block SIGHUP, SIGINT, SIGTERM.
*