Linux-kernel mailing list archive 2000-26,: Re: closefd: closes a file of any process

# Re: closefd: closes a file of any process

Werner Almesberger (almesber@lrc.epfl.ch)
Wed, 28 Jun 2000 19:44:40 +0200 (MET DST)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Al Borchers: "Race in n_tty.c write_chan()"
- Previous message: Andrea Arcangeli: "Re: [PATCH] 2.2.17pre7 VM enhancement Re: I/O performance on"

uaca@alumni.uv.es wrote:
> I hope what you say here doesn't apply with to my module that just emulates
> sys_close() for the non-current process

Well, it has the same restrictions: if the current process can't close
the file for some reason, no other process should be able to. If you can
close it (i.e. destroy the association between the process and the
underlying object) but something keeps the lower layers still busy, they
will remain busy nonetheless.

I'm not saying that a 3rd party close is a priori useless, but the range
of useful applications may be quite narrow. And, in particular, it
doesn't necessarily solve the problem of unkillable processes and the
resources they keep busy.

- Werner

    --
      _________________________________________________________________________
     / Werner Almesberger, ICA, EPFL, CH       werner.almesberger@ica.epfl.ch /
    /_IN_N_032__Tel_+41_21_693_6621__Fax_+41_21_693_6610_____________________/

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/

- Next message: Al Borchers: "Race in n_tty.c write_chan()"
- Previous message: Andrea Arcangeli: "Re: [PATCH] 2.2.17pre7 VM enhancement Re: I/O performance on"