Mercurial > pidgin.yaz
comparison libpurple/dnsquery.c @ 15646:61b42cf81aa4
Restore default signal handlers in fork()'d children. This adds a gaim_restore_default_signal_handlers() utility function since children are made in multiple places.
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Sun, 18 Feb 2007 18:16:57 +0000 |
parents | 5fe8042783c1 |
children | 6a0b9734a722 |
comparison
equal
deleted
inserted
replaced
15645:602eb093e4c0 | 15646:61b42cf81aa4 |
---|---|
155 struct sockaddr_in sin; | 155 struct sockaddr_in sin; |
156 const size_t addrlen = sizeof(sin); | 156 const size_t addrlen = sizeof(sin); |
157 #endif | 157 #endif |
158 | 158 |
159 #ifdef HAVE_SIGNAL_H | 159 #ifdef HAVE_SIGNAL_H |
160 signal(SIGHUP, SIG_DFL); | 160 gaim_restore_default_signal_handlers(); |
161 signal(SIGINT, SIG_DFL); | |
162 signal(SIGQUIT, SIG_DFL); | |
163 signal(SIGCHLD, SIG_DFL); | |
164 signal(SIGTERM, SIG_DFL); | |
165 signal(SIGTRAP, trap_gdb_bug); | 161 signal(SIGTRAP, trap_gdb_bug); |
166 #endif | 162 #endif |
167 | 163 |
168 /* | 164 /* |
169 * We resolve 1 host name for each iteration of this | 165 * We resolve 1 host name for each iteration of this |