From 709981e01f7d3c1885f7cce08f60ebe016dd7098 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 27 Jul 2008 23:09:41 +0200 Subject: disable SIGCHLD in example --- libasyncns/asyncns-test.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libasyncns/asyncns-test.c b/libasyncns/asyncns-test.c index 57c987d..b8604e6 100644 --- a/libasyncns/asyncns-test.c +++ b/libasyncns/asyncns-test.c @@ -31,6 +31,8 @@ #include #include #include +#include +#include #include "asyncns.h" @@ -43,7 +45,9 @@ int main(int argc, char *argv[]) { char host[NI_MAXHOST] = "", serv[NI_MAXSERV] = ""; unsigned char *srv; - if (!(asyncns = asyncns_new(1))) { + signal(SIGCHLD, SIG_IGN); + + if (!(asyncns = asyncns_new(2))) { fprintf(stderr, "asyncns_new() failed\n"); goto fail; } -- cgit