Subject: Re: ignoring return values from functions.
To: NetBSD Userlevel Technical Discussion List <tech-userlevel@NetBSD.ORG>
From: Greg A. Woods <woods@weird.com>
List: tech-userlevel
Date: 09/21/2001 02:37:04
[ On Friday, September 21, 2001 at 14:03:17 (+0900), Curt Sampson wrote: ]
> Subject: Re: ignoring return values from functions.
>
> So if there's an error with that close, you then print the error to
> stderr?
Yes, at least for basic filter programs, etc.
> If you've used stderr at all in your program, do you always
> also attempt to close it and check the close? If that close fails,
> what do you do?
No, no, and nothing. All that's needed in these circumstances is a best
effort. (Of course one should mabye exit with a non-zero value in that
case, but I've not yet thought through all the implications of doing
this.)
--
Greg A. Woods
+1 416 218-0098 VE3TCP <gwoods@acm.org> <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>