|
|
e701b47 |
diff --git a/omapip/isclib.c b/omapip/isclib.c
|
|
|
e701b47 |
index 9ec1a0f..42d82ff 100644
|
|
|
e701b47 |
--- a/omapip/isclib.c
|
|
|
e701b47 |
+++ b/omapip/isclib.c
|
|
|
e701b47 |
@@ -185,16 +185,6 @@ dhcp_context_create(int flags,
|
|
|
e701b47 |
if (result != ISC_R_SUCCESS)
|
|
|
e701b47 |
goto cleanup;
|
|
|
e701b47 |
|
|
|
e701b47 |
- result = isc_app_ctxstart(dhcp_gbl_ctx.actx);
|
|
|
e701b47 |
- if (result != ISC_R_SUCCESS)
|
|
|
e701b47 |
- return (result);
|
|
|
e701b47 |
- dhcp_gbl_ctx.actx_started = ISC_TRUE;
|
|
|
e701b47 |
-
|
|
|
e701b47 |
- /* Not all OSs support suppressing SIGPIPE through socket
|
|
|
e701b47 |
- * options, so set the sigal action to be ignore. This allows
|
|
|
e701b47 |
- * broken connections to fail gracefully with EPIPE on writes */
|
|
|
e701b47 |
- handle_signal(SIGPIPE, SIG_IGN);
|
|
|
e701b47 |
-
|
|
|
e701b47 |
result = isc_taskmgr_createinctx(dhcp_gbl_ctx.mctx,
|
|
|
e701b47 |
dhcp_gbl_ctx.actx,
|
|
|
e701b47 |
1, 0,
|
|
|
e701b47 |
@@ -217,6 +207,21 @@ dhcp_context_create(int flags,
|
|
|
e701b47 |
result = isc_task_create(dhcp_gbl_ctx.taskmgr, 0, &dhcp_gbl_ctx.task);
|
|
|
e701b47 |
if (result != ISC_R_SUCCESS)
|
|
|
e701b47 |
goto cleanup;
|
|
|
e701b47 |
+
|
|
|
e701b47 |
+ result = isc_app_ctxstart(dhcp_gbl_ctx.actx);
|
|
|
e701b47 |
+ if (result != ISC_R_SUCCESS)
|
|
|
e701b47 |
+ return (result);
|
|
|
e701b47 |
+ dhcp_gbl_ctx.actx_started = ISC_TRUE;
|
|
|
e701b47 |
+
|
|
|
e701b47 |
+ /* Not all OSs support suppressing SIGPIPE through socket
|
|
|
e701b47 |
+ * options, so set the sigal action to be ignore. This allows
|
|
|
e701b47 |
+ * broken connections to fail gracefully with EPIPE on writes */
|
|
|
e701b47 |
+ handle_signal(SIGPIPE, SIG_IGN);
|
|
|
e701b47 |
+
|
|
|
e701b47 |
+ /* Reset handlers installed by isc_app_ctxstart()
|
|
|
e701b47 |
+ * to default for control-c and kill */
|
|
|
e701b47 |
+ handle_signal(SIGINT, SIG_DFL);
|
|
|
e701b47 |
+ handle_signal(SIGTERM, SIG_DFL);
|
|
|
e701b47 |
}
|
|
|
e701b47 |
|
|
|
e701b47 |
#if defined (NSUPDATE)
|
|
|
e701b47 |
|