Re: /usr/lib/apt/methods/http - close(-1)

1999-01-30 Thread rjk
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/

/usr/lib/apt/methods/http - close(-1)

1999-01-29 Thread Russell Coker
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

Re: /usr/lib/apt/methods/http - close(-1)

1999-01-29 Thread Scott K. Ellis
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.

Re: /usr/lib/apt/methods/http - close(-1)

1999-01-29 Thread Russell Coker
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. It really

Re: /usr/lib/apt/methods/http - close(-1)

1999-01-29 Thread Jason Gunthorpe
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

Re: /usr/lib/apt/methods/http - close(-1)

1999-01-29 Thread Stephen Zander
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 certain exactly

Re: /usr/lib/apt/methods/http - close(-1)

1999-01-29 Thread Scott K. Ellis
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) closes all open file