| https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1740 |
| https://bugs.gentoo.org/show_bug.cgi?id=260457 |
| |
| === modified file 'capture_opts.c' |
| --- capture_opts.c 2009-03-05 16:59:51 +0000 |
| +++ capture_opts.c 2009-03-05 17:06:49 +0000 |
| @@ -59,6 +59,7 @@ |
| # include "inet_v6defs.h" |
| #endif |
| |
| +#include <signal.h> |
| #include <glib.h> |
| |
| #include <epan/packet.h> |
| @@ -759,6 +760,15 @@ |
| "Dropped"); |
| } |
| |
| +#ifndef _WIN32 |
| + /* handle SIGPIPE signal to default action */ |
| + struct sigaction act; |
| + act.sa_handler = SIG_DFL; |
| + sigemptyset(&act.sa_mask); |
| + act.sa_flags = SA_RESTART; |
| + sigaction(SIGPIPE,&act,NULL); |
| +#endif |
| + |
| while (1) { /* XXX - Add signal handling? */ |
| for (stat_entry = g_list_first(stat_list); stat_entry != NULL; stat_entry = g_list_next(stat_entry)) { |
| if_stat = stat_entry->data; |
| |