diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-07-16 05:43:39 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-07-16 05:43:39 +0000 |
commit | 78cf0b30404e9d266d153c6d99396fd345c7b5a1 (patch) | |
tree | cfe00ecdb909ac110b554efc57a3337258062cbe /capture.c | |
parent | 42883e71d24cbd2b55318b388bf214fed362dab5 (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5883 f5534014-38df-0310-8fa8-9805f1628bb7
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 |