wireshark/capchild
Roland Knall c611eded22 extcap: Use stderr to print error message
This patch reads out the stderr messages from an extcap
utility and displays it to an user. It was tested on Qt
but not on GTK, but should work their as well.

On Mac OS/X and Windows the child_watch does not behave
as it was intended. Therefore in extcap_cleanup, the callbacks
are called manually, if and only if, they have not been
called already.

The reason why it displays two error messages is, that
by the time the first one is being displayed, glib has not
returned from the spawned process on Linux yet. So there
is no way to add the stderr correctly, and putting a handler
to stderr into interface_opts will lead to memory errors,
cause then the code tries to access memory outside of its
protection.

Bug: 11892
Change-Id: I2db60dd480fed3e01428b91a705057e4f088bd15
Reviewed-on: https://code.wireshark.org/review/12954
Reviewed-by: Roland Knall <rknall@gmail.com>
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-07-30 21:15:39 +00:00
..
CMakeLists.txt Add checkAPI calls to CMake. 2016-05-02 12:01:24 +00:00
Makefile.am Remove Makefile.common files 2016-06-30 11:04:17 +00:00
capture_ifinfo.c Fix appending the list of remote interfaces. 2016-02-27 02:04:00 +00:00
capture_session.h Allow "capture info data" to not be a singleton. 2015-12-19 14:22:56 +00:00
capture_sync.c extcap: Use stderr to print error message 2016-07-30 21:15:39 +00:00
capture_sync.h dumpcap: Add support for 802.11ac monitor modes 2016-03-01 15:23:44 +00:00
doxygen.cfg.in Get rid of trailing blanks. 2014-06-24 02:08:37 +00:00