"Pekka Enberg" <[email protected]> writes:
> On 8/8/06, Chase Venters <[email protected]> wrote:
> > IIRC, it returns EBADF because the file actually gets closed. The file
> > descriptor, on the other hand, is permanently leaked.
> >
> > Have these details changed?
>
> No. Your description is accurate.
>
> Pekka
So application can not close() it and recover file description?
/ Kari Hurtta
On Tue, Aug 08, 2006 at 07:02:15PM +0300, Kari Hurtta wrote:
> "Pekka Enberg" <[email protected]> writes:
>
> > On 8/8/06, Chase Venters <[email protected]> wrote:
> > > IIRC, it returns EBADF because the file actually gets closed. The file
> > > descriptor, on the other hand, is permanently leaked.
> > >
> > > Have these details changed?
> >
> > No. Your description is accurate.
> >
> > Pekka
>
> So application can not close() it and recover file description?
That would be correct behavior, IMHO, and matches what happens with a
tty hangup.
- Ted
On Tue, Aug 08, 2006 at 07:02:15PM +0300, Kari Hurtta wrote:
> > So application can not close() it and recover file description?
On 8/9/06, Theodore Tso <[email protected]> wrote:
> That would be correct behavior, IMHO, and matches what happens with a
> tty hangup.
Agreed.
Pekka