On 07/01/2008, Andrew Reilly <andrew-freebsd_at_areilly.bpc-users.org> wrote: > On Mon, 07 Jan 2008 13:18:47 +0000 > "Poul-Henning Kamp" <phk_at_phk.freebsd.dk> wrote: > > > Yes, but you will not see this complication, it will be hidden > > in the implementation of malloc(3). > > How could you hide it inside malloc? Would malloc start > returning 0 after receiving the "less mem than desirable" > signal? Would it ever go back to returning non-zero? I'm with Andrew on this one. The only (sensible) way I could see it being hidden behind malloc() is if malloc() blocks until sufficient memory becomes available. I thought the real idea behind SIGDANGER was to tell the kernel "I kind of know what I'm doing, so if you gonna kill something don't kill me" and that was achieved by AIX not SIGKILLing processes that had sigaction(SIGDANGER) != SIG_IGN. Igor :-)Received on Mon Jan 07 2008 - 23:06:35 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:25 UTC