Re: kernel thread support - LWP's

Alon Ziv (alonz@cs.Technion.AC.IL)
Sat, 17 Jul 1999 23:34:14 +0300 (IDT)


Hah... Replying to my own message like a newbie :-/

I just found an error:

> >
> > This already exists. Do prctl(PR_SET_DEATHSIG, SOME_NEW_SIGNAL) in the child
> > and ignore that signal in the parent (at least it should work in theory,
> > I haven't tested it)
> >

This actually _wont_work_, as this is the _parent_ death signal (which
_we_ receive when our _parent_ dies). So, while using
prctl(PR_SET_PDEATH_SIG,...) is a good way to initiate cleanup when a
multithreaded app is killed (which, BTW, solves the kill -9 problem),
there's no way we can change the signal our _parent_ would get when _we_
die (and a good thing that is too: I believe it would have been useful to
escape certain kinds of limited-execution traps...)

------------------------+----------------------------------------------------
. __ | Phone: +972 3 5340753 (home), +972 3 9685882 (work)
_| / | email: alonz@usa.net
/ | /_ Alon Ziv | smail: 33 Ha-Rama St., Ganey Tiqwah 55900, Israel
------------------------+----------------------------------------------------
<<<(((this place reserved for that ultra-wise oneliner I haven't found.)))>>>

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