From 12d3278d0b23873b407621268b549f9161eee419 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 23 Sep 1999 06:27:27 +0000 Subject: Move the toolkit-independent code to create a temporary capture file, and to fork off and run a separate copy of "ethereal" for "-S" and "-F" captures or just call "capture()" otherwise, out of "gtk/capture_dlg.c" and into a routine in "capture.c". If the attempt to create said temporary capture file fails, pop up a dialog box and don't do the capture. Have the child capture process send a message upstream after it either successfully starts the capture and syncs out the header of the capture file, or fails to start the capture; the message indicates whether it succeeded or failed, and, if it failed, includes a failure message. This: avoids the use of a signal, and thus means we don't have to worry about whether to capture the signal, or whether to start or stop capturing depending on whether this particular capture is in sync mode or not; lets us pop up the message box for the error in the parent process if we're in sync mode, rather than doing it in the child, which didn't work well. Add a check button to the Capture/Start dialog box, so that we can control, for each capture, whether it's to be done in sync mode or not. svn path=/trunk/; revision=708 --- globals.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'globals.h') diff --git a/globals.h b/globals.h index 7bf742bd9f..b3166d36b6 100644 --- a/globals.h +++ b/globals.h @@ -1,7 +1,7 @@ /* globals.h * Global defines, etc. * - * $Id: globals.h,v 1.5 1999/09/19 15:54:53 deniel Exp $ + * $Id: globals.h,v 1.6 1999/09/23 06:27:19 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -101,7 +101,6 @@ extern GtkStyle *item_style; extern int sync_mode; /* allow sync */ extern int sync_pipe[2]; /* used to sync father */ extern int fork_mode; /* fork a child to do the capture */ -extern int sigusr2_received; extern int quit_after_cap; /* Makes a "capture only mode". Implies -k */ #endif -- cgit v1.2.3