Re: [maybe fixed.. i hope i hope i hope] Re: snipe hunt

From: Alexander Viro (viro@math.psu.edu)
Date: Thu May 04 2000 - 19:40:17 EDT

  • Next message: Alan Cox: "Re: [maybe fixed.. i hope i hope i hope] Re: snipe hunt"

    On Thu, 4 May 2000, Linus Torvalds wrote:

    >
    >
    > On Thu, 4 May 2000, Alexander Viro wrote:
    > >
    > > a) think what we really need to see for zombies. E.g. if we consider
    > > PF_EXITING as "dead" for maps, mem, fd/*, stat*, cmdline and environ -
    > > fine, we can get out with that.
    >
    > I'd prefer an approach something like this:
    >
    > lock_task(current);
    > fs = current->fs;
    > mm = current->mm;
    > files = current->files;
    > signal = current->signal;
    > current->fs = NULL;
    > current->mm = NULL;
    > current->files = NULL;
    > current->signal = NULL;
    > unlock_task(current);

    That has an unpleasant side effect: you won't see zombies in ps output.
    At all. If that's OK - no problems, we can do it much simpler and protect
    only the moment of setting PF_EXITING. If it is not...

    -
    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/



    This archive was generated by hypermail 2b29 : Thu May 04 2000 - 22:41:47 EDT