On Wed, Feb 02, 2000 at 11:55:20AM -0600, Gilbert Ramirez wrote:
>
> OK. I've determined that the callback on the sync pipe (cap_file_input_cb)
> isn't being called after I close the capture dialog box, so
> finish_tail_cap_file() isn't being called either. That's where the
> label widget and menus get changed.
On Solaris 2.6, I needed to add the GDK_INPUT_EXCEPTION flag to the
list of flags that we're select()-ing on. Now it works for me on Solaris.
--gilbert
Index: capture.c
===================================================================
RCS file: /usr/local/cvsroot/ethereal/capture.c,v
retrieving revision 1.93
diff -u -r1.93 capture.c
--- capture.c 2000/01/30 17:10:29 1.93
+++ capture.c 2000/02/02 18:36:06
@@ -234,7 +234,7 @@
to read from the sync pipe, so that it's called when
the child process wants to tell us something. */
cap_input_id = gtk_input_add_full(sync_pipe[0],
- GDK_INPUT_READ,
+ GDK_INPUT_READ|GDK_INPUT_EXCEPTION,
cap_file_input_cb,
NULL,
(gpointer) &cf,
@@ -468,7 +468,7 @@
/* restore pipe handler */
cap_input_id = gtk_input_add_full (sync_pipe[0],
- GDK_INPUT_READ,
+ GDK_INPUT_READ|GDK_INPUT_EXCEPTION,
cap_file_input_cb,
NULL,
(gpointer) cf,