Re: fwcontrol -r missing a close() call

From: Dan Nelson <dnelson_at_allantgroup.com>
Date: Tue, 19 Aug 2003 12:11:57 -0500
In the last episode (Aug 19), Andre Guibert de Bruet said:
> open("/dev/fw0.0",0x2,01001132500)               = 3 (0x3)
> ioctl(3,FW_IBUSRST,0xbfbff400)                   = 0 (0x0)
> exit(0x0)
> process exit, rval = 0
> 
> We're not closing fd #3 before exiting the process. This is also the case
> with 4.8-STABLE.
> 
> Semantics? Nit-picking? Both? :)

Why bother closing a fd when exit() will do it for you?  You don't
close stdout when you're done with it :)

-- 
	Dan Nelson
	dnelson_at_allantgroup.com
Received on Tue Aug 19 2003 - 08:12:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:19 UTC