diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-07-01 00:12:16 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-07-01 00:12:16 +0000 |
commit | 28da680536ffc78489a59c77da7d717df04413e6 (patch) | |
tree | 49de4177e15fd73502e2d2b372524999676dddb3 /capture_sync.c | |
parent | 67fd8ad0b3ade1dc08271a4635ab9225ee79d9d2 (diff) |
From Petr Lautrbach: when capturing, return the exit status of dumpcap,
so we give a non-zero exit status for invalid interfaces or capture
filters.
From me: don't exit immediately if dumpcap failed, print out information
from taps and the like.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33393 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture_sync.c')
-rw-r--r-- | capture_sync.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/capture_sync.c b/capture_sync.c index 4f2c49d673..585deebd71 100644 --- a/capture_sync.c +++ b/capture_sync.c @@ -593,6 +593,8 @@ sync_pipe_start(capture_options *capture_opts) { return FALSE; } + capture_opts->fork_child_status = 0; + /* we might wait for a moment till child is ready, so update screen now */ main_window_update(); @@ -1511,6 +1513,7 @@ sync_pipe_input_cb(gint source, gpointer user_data) /* No more child process. */ capture_opts->fork_child = -1; + capture_opts->fork_child_status = ret; #ifdef _WIN32 ws_close(capture_opts->signal_pipe_write_fd); |