summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ea30b35)
raw | patch | inline | side by side (parent: ea30b35)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 2 Dec 2006 16:50:37 +0000 (17:50 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 2 Dec 2006 16:50:37 +0000 (17:50 +0100) |
src/dns.c | patch | blob | history |
diff --git a/src/dns.c b/src/dns.c
index da45a389ba1e8bae67d26886fbf9255d5f91d321..61b5a1bdf7152661890743c6dc37665d40f60816 100644 (file)
--- a/src/dns.c
+++ b/src/dns.c
struct pollfd poll_fds[1];
int status;
- /* Don't catch these signals */
- /* FIXME: Really? */
- signal (SIGINT, SIG_DFL);
- signal (SIGTERM, SIG_DFL);
+ /* Don't block any signals */
+ {
+ sigset_t sigmask;
+ sigemptyset (&sigmask);
+ pthread_sigmask (SIG_SETMASK, &sigmask, NULL);
+ }
/* Passing `pcap_device == NULL' is okay and the same as passign "any" */
DBG ("Creating PCAP object..");