path: root/globals.h
diff options
authorGuy Harris <guy@alum.mit.edu>1999-09-23 06:27:27 +0000
committerGuy Harris <guy@alum.mit.edu>1999-09-23 06:27:27 +0000
commit12d3278d0b23873b407621268b549f9161eee419 (patch)
tree8a390a7bbfd89ee2b55f021006fe10ffa98ff393 /globals.h
parent560e64cb7308d8a509bbfa05140e8213cdce9fb5 (diff)
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
Diffstat (limited to 'globals.h')
1 files changed, 1 insertions, 2 deletions
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 <gerald@zing.org>
@@ -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 */