diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-05-25 23:28:59 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-05-25 23:28:59 +0000 |
commit | 351214282dba3126faea8ccab2e3310f4ce35cf7 (patch) | |
tree | 4f69d9d73ef5eed2db24a06371fd7aa68013162e /capture.c | |
parent | b3b72959a23905eda7a6cf68c5f531daea63acd5 (diff) | |
download | wireshark-351214282dba3126faea8ccab2e3310f4ce35cf7.tar.gz wireshark-351214282dba3126faea8ccab2e3310f4ce35cf7.tar.bz2 wireshark-351214282dba3126faea8ccab2e3310f4ce35cf7.zip |
the capture child might not respond shortly after bringing it up (especially it will block, if no input coming from an input capture pipe (e.g. mkfifo) is coming in)
to prevent problems, bring the main GUI into "capture mode" right after successfully spawn/exec the capture child, without waiting for any response from it
svn path=/trunk/; revision=14436
Diffstat (limited to 'capture.c')
-rw-r--r-- | capture.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -98,6 +98,13 @@ capture_start(capture_options *capture_opts) } capture_opts->state = CAPTURE_STOPPED; + } else { + /* the capture child might not respond shortly after bringing it up */ + /* (especially it will block, if no input coming from an input capture pipe (e.g. mkfifo) is coming in) */ + + /* to prevent problems, bring the main GUI into "capture mode" right after successfully */ + /* spawn/exec the capture child, without waiting for any response from it */ + cf_callback_invoke(cf_cb_live_capture_prepared, capture_opts); } return ret; |