/[Apache-SVN]
ViewVC logotype

Revision 98527


Jump to revision: Previous Next
Author: jerenkrantz
Date: Wed Jan 29 06:13:27 2003 UTC (21 years, 6 months ago)
Changed paths: 2
Log Message:
Added error handling for failed config-file open.

This patch adds error handling to the code that opens the
configuration file.  When you specify an argument to the flood
program, it attempts to open it to read in configuration
information.  Previously, there was no error handling, so
the code proceeded to use an invalid file handle when the
file open fails.  The code now detects the failure and displays
an error message.

The standard error and output file-opens were moved earlier
in the program in case we need to display error messages
to standard error.

On Windows, using the invalid file handle results in an
access violation.  The program now displays a message like
this:
  Error opening configuration file: The system cannot find
  the file specified.  .

Submitted by: Phi-Long Tran <ptran@pobox.com>
Reviewed by: Justin Erenkrantz (minor formatting tweak)


Changed paths

Path Details
Directoryhttpd/test/trunk/flood/CHANGES modified , text changed , props changed
Directoryhttpd/test/trunk/flood/flood.c modified , text changed , props changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26