Re: mmap not async-signal-safe?

2013-07-18 Thread Oleg Goldshmidt
, never block on something that is up to the program that is currently halted by the signal. Mmap is, in fact, marked as async-signal-safe on Solaris[1]. And yet, Posix decided not to include it in its list. On a related note - is mmap async-signal-safe on Linux? Hi Shachar, I suspect you

mmap not async-signal-safe?

2013-07-17 Thread Shachar Shemesh
that is currently halted by the signal. Mmap is, in fact, marked as async-signal-safe on Solaris[1]. And yet, Posix decided not to include it in its list. On a related note - is mmap async-signal-safe on Linux? And, lastly, what is the signal delivery flow in the kernel? What happens when a signal arrives

Re: mmap not async-signal-safe?

2013-07-17 Thread Baruch Siach
Hi Shachar, On Thu, Jul 18, 2013 at 06:36:57AM +0300, Shachar Shemesh wrote: As we all know, from a signal handler it is only safe to call functions that are async signal safe. I have a couple of questions (three, actually), if anyone happens to know the answer to: First, why the name? The