diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/qt/main.cpp b/ui/qt/main.cpp index d4aced1b34..15ba44c7b8 100644 --- a/ui/qt/main.cpp +++ b/ui/qt/main.cpp @@ -29,6 +29,8 @@ #include <glib.h> +#include <signal.h> + #ifndef HAVE_GETOPT # include "wsutil/wsgetopt.h" #else @@ -784,6 +786,11 @@ int main(int argc, char *argv[]) wsApp->setLastOpenDir(get_persdatafile_dir()); } +#ifdef Q_OS_UNIX + // Replicates behavior in gtk_init(); + signal(SIGPIPE, SIG_IGN); +#endif + #ifdef HAVE_LIBPCAP capture_callback_add(main_capture_callback, NULL); #endif |