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.
Graeme Hewson
--- capture.c.orig Sat Jun 22 11:21:00 2002
+++ capture.c Sun Jul 14 19:45:02 2002
@@ -576,12 +576,9 @@
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