aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/main.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2006-02-12 20:17:55 +0000
committerGuy Harris <guy@alum.mit.edu>2006-02-12 20:17:55 +0000
commit501dced966aadeb602c95bfe9b9cd9faf4a23eaf (patch)
tree55876c84684ea1d2df66163c0d82d4c190e1b6c6 /gtk/main.c
parent3aebb783ffd85a1e50322d53f21c84643dda701b (diff)
Send LOG_DOMAIN_CAPTURE_CHILD messages to our log handler, so they don't
go to the standard output (as is the case for some such messages, including the "child is sending an error message to the parent" message, which shows up if we fail to exec dumpcap). *Anything* other than an official capture-child message written to the standard output by the capture child confuses the heck out of the parent, and can cause it to think the child closed the pipe (resulting, in the case described in the previous parenthetical note, in no dialog box being displayed for dumpcap not being executed). svn path=/trunk/; revision=17274
Diffstat (limited to 'gtk/main.c')
-rw-r--r--gtk/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/main.c b/gtk/main.c
index e73704f7e5..d09435aef2 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -2078,7 +2078,10 @@ main(int argc, char *argv[])
#ifdef HAVE_LIBPCAP
g_log_set_handler(LOG_DOMAIN_CAPTURE,
log_flags,
- console_log_handler, NULL /* user_data */);
+ console_log_handler, NULL /* user_data */);
+ g_log_set_handler(LOG_DOMAIN_CAPTURE_CHILD,
+ log_flags,
+ console_log_handler, NULL /* user_data */);
/* Set the initial values in the capture_opts. This might be overwritten
by preference settings and then again by the command line parameters. */