2006-08-08 16:03:00

by Kari Hurtta

[permalink] [raw]
Subject: Re: [RFC/PATCH] revoke/frevoke system calls V2

"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


2006-08-08 21:55:04

by Theodore Ts'o

[permalink] [raw]
Subject: Re: [RFC/PATCH] revoke/frevoke system calls V2

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

2006-08-09 06:32:42

by Pekka Enberg

[permalink] [raw]
Subject: Re: [RFC/PATCH] revoke/frevoke system calls V2

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