diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-05-26 02:32:19 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-05-26 02:32:19 +0000 |
commit | d0ac88186d39e6ae2650843acb40cbbed239b170 (patch) | |
tree | 5ef81348bbe1be9f751202477598a4decd3dbba1 /capture_sync.c | |
parent | 347e7a0052fe0610ec105de34efe935c727fd3ce (diff) | |
download | wireshark-d0ac88186d39e6ae2650843acb40cbbed239b170.tar.gz |
If dumpcap exits abnormally, report the error.
svn path=/trunk/; revision=32964
Diffstat (limited to 'capture_sync.c')
-rw-r--r-- | capture_sync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/capture_sync.c b/capture_sync.c index a66aff4b18..6e4d052c8a 100644 --- a/capture_sync.c +++ b/capture_sync.c @@ -1434,7 +1434,6 @@ sync_pipe_input_cb(gint source, gpointer user_data) else primary_msg = g_strdup("Error reading from sync pipe"); } - g_free(primary_msg); /* XXX - display this */ /* No more child process. */ capture_opts->fork_child = -1; @@ -1442,7 +1441,8 @@ sync_pipe_input_cb(gint source, gpointer user_data) #ifdef _WIN32 ws_close(capture_opts->signal_pipe_write_fd); #endif - capture_input_closed(capture_opts); + capture_input_closed(capture_opts, primary_msg); + g_free(primary_msg); return FALSE; } |