The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 01-06-2008
jasahl jasahl is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 3
Quote:
Originally Posted by porter View Post
Do you have the source to the application?

Is this a reasonable test case given that the application does not do this normally?

What would you expect an application to do if it got an error from "close()"?

I, for one as a programmer, wouldn't assume the file was still open and continue to use the same filedescriptor. If I got an error from a close(), I would may report the error but have to treat the file descriptor as "undefined".
I do have access to the source code (albeit read only). This is an application that records system information to a file. The file is closed every 15 minutes and sent to Enterprise Storage. A new file is opened.

The application is supposed to post an alert in the event that it is unable to close the file when the timer pops. This is the case I am supposed to test. Failure to transfer the file is a separate test case.