summaryrefslogtreecommitdiff
path: root/usr.bin/dig/dighost.c
diff options
context:
space:
mode:
authorJoerg Jung <jung@cvs.openbsd.org>2020-02-19 20:57:11 +0000
committerJoerg Jung <jung@cvs.openbsd.org>2020-02-19 20:57:11 +0000
commit8618cda76cfa6d396e9463f0fc41fb67395d7c21 (patch)
treebcf70fa17232e7c967ed30b4ba9ba674c2878555 /usr.bin/dig/dighost.c
parent444a76bf65212deb09888c23aaea7d99a9a8a076 (diff)
simplify signal setup and remove block/unblock/is_running/reload
with input from florian ok millert florian
Diffstat (limited to 'usr.bin/dig/dighost.c')
-rw-r--r--usr.bin/dig/dighost.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/usr.bin/dig/dighost.c b/usr.bin/dig/dighost.c
index afc2c749059..185bc8d515d 100644
--- a/usr.bin/dig/dighost.c
+++ b/usr.bin/dig/dighost.c
@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: dighost.c,v 1.10 2020/02/16 21:11:02 florian Exp $ */
+/* $Id: dighost.c,v 1.11 2020/02/19 20:57:10 jung Exp $ */
/*! \file
* \note
@@ -3792,14 +3792,8 @@ isc_result_t
get_address(char *host, in_port_t myport, isc_sockaddr_t *sockaddr) {
int count;
isc_result_t result;
- isc_boolean_t is_running;
- is_running = isc_app_isrunning();
- if (is_running)
- isc_app_block();
result = get_addresses(host, myport, sockaddr, 1, &count);
- if (is_running)
- isc_app_unblock();
if (result != ISC_R_SUCCESS)
return (result);