Russell Coker <[EMAIL PROTECTED]> writes:
> What is a close(-1) supposed to do? The http program does one and
> I'm curious as to why...
It usually means someone isn't checking the return value from
open/socket/etc...
--
http://www.greenend.org.uk/rjk/
On 29 Jan 1999, Stephen Zander wrote:
> > "Scott" == Scott K Ellis <[EMAIL PROTECTED]> writes:
>
> Scott> On Fri, 29 Jan 1999, Russell Coker wrote:
> >> What is a close(-1) supposed to do? The http program does one
> >> and I'm curious as to why...
>
> Scott> IIRC, close(-1)
> "Scott" == Scott K Ellis <[EMAIL PROTECTED]> writes:
Scott> On Fri, 29 Jan 1999, Russell Coker wrote:
>> What is a close(-1) supposed to do? The http program does one
>> and I'm curious as to why...
Scott> IIRC, close(-1) closes all open file handles. I'm not
Scott> ce
On Fri, 29 Jan 1999, Russell Coker wrote:
> What is a close(-1) supposed to do? The http program does one and I'm curious
> as to why...
Absolutely nothing :> -1 is defined to be an invalid FD and close(-1) is
to return an error code and basically do nothing when given -1
Jason
On Fri, 29 Jan 1999, Scott K. Ellis wrote:
>On Fri, 29 Jan 1999, Russell Coker wrote:
>
>> What is a close(-1) supposed to do? The http program does one and I'm
>> curious
>> as to why...
>
>IIRC, close(-1) closes all open file handles. I'm not certain exactly
>wher this is documented though.
I
On Fri, 29 Jan 1999, Russell Coker wrote:
> What is a close(-1) supposed to do? The http program does one and I'm curious
> as to why...
IIRC, close(-1) closes all open file handles. I'm not certain exactly
wher this is documented though.
What is a close(-1) supposed to do? The http program does one and I'm curious
as to why...
FYI:
ii apt 0.1.10 Front-End for dpkg
--
I am in London and would like to meet any Linux users here.
I plan to work in London for 6 months and then I might move to some other
place whe
7 matches
Mail list logo