On Mon, Jan 07, 2008 at 09:08:35AM +0000, Poul-Henning Kamp wrote:
usov=20
This depends on what SIGDANGER is supposed to indicate. IMO, a single
signal is inadequate - you need a "free memory is less than desirable,
please reduce memory use if possible" and one (or maybe several levels
of) "memory is really short, if you're not important, please die".
The former could reasonably default to SIG_IGN - processes that are
in a position to release memory on demand could provide a handler to
do so. (This could potentially include malloc returning space on
its freelist to the kernel).
The latter should default to "terminate process" and a process that
considers itself "important" enough can trap it.
--=20
Peter Jeremy
Please excuse any delays as the result of my ISP's inability to implement
an MTA that is either RFC2821-compliant or matches their claimed behaviour.