diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-07-16 05:43:39 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-07-16 05:43:39 +0000 |
commit | 41dc7b1b59bef7521b9e6febc7a482e2f32017fe (patch) | |
tree | cfe00ecdb909ac110b554efc57a3337258062cbe /capture.c | |
parent | a77d6a14c28ec5b05706669a94761d5bb31c2c12 (diff) |
From Graeme Hewson:
In sync mode, if the capture file written by the child can't be
opened by the parent, ethereal will write two identical popup
error messages.
This patch fixes the problem.
svn path=/trunk/; revision=5883
Diffstat (limited to 'capture.c')
-rw-r--r-- | capture.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -1,7 +1,7 @@ /* capture.c * Routines for packet capture windows * - * $Id: capture.c,v 1.184 2002/07/15 23:25:59 guy Exp $ + * $Id: capture.c,v 1.185 2002/07/16 05:43:39 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -576,12 +576,9 @@ do_capture(char *capfile_name) NULL); #endif } else { - /* We weren't able to open the capture file; complain, and - close the sync pipe. */ - simple_dialog(ESD_TYPE_CRIT, NULL, - file_open_error_message(err, FALSE), cfile.save_file); + /* We weren't able to open the capture file; user has been + alerted. Close the sync pipe. */ - /* Close the sync pipe. */ close(sync_pipe[READ]); /* Don't unlink the save file - leave it around, for debugging |