Signals after exec
Greg Noel
greg at ncr-sd.SanDiego.NCR.COM
Fri Feb 24 06:46:04 AEST 1989
In article <1187 at csd4.milw.wisc.edu> jd at csd4.milw.wisc.edu
(James R Drinkwater) writes:
>Can you think of examples in which you would like to keep a signal handler
>installed across exec?
In other articles, Larry McVoy and other folks argue that this doesn't
make much sense, since a signal handler is part of your address space,
which is lost upon an exec.
This was my initial reaction, too, but then I remembered a paper at the
Winter USENIX conference that presented something called "variable-weight
processes." This paper very neatly unified the model of a thread and a
process by defining groups of resources, including memory map, file
descriptors, signals, and other resources, that could be shared between
a parent and child thread. At the one extreme, sharing everything, this
gives a "traditional" thread, while at the other extreme, sharing nothing,
this gives a "traditional" (heavy-weight) process. In between are some
interesting options, including the possibility of sharing signals, but
not sharing an address map. If anybody knows how this kind of semantics
was worked out (my copy of the Proceedings isn't here, and my fuzzy memory
of the paper itself says that they didn't discuss it), I'd be interesting
in hearing about it.
--
-- Greg Noel, NCR Rancho Bernardo Greg.Noel at SanDiego.NCR.COM or greg at ncr-sd
More information about the Comp.unix.wizards
mailing list