[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: [LI] Signal behaves differently on LINUX and HPUX
On Fri, Oct 15, 1999 at 05:19:17PM +0530, Nitin wrote:
> Hi
> Didn't the panding signals are checked when the system returns from Kernel
> mode to User mode ?? If so then how come the two things ( Step 3,4,5 in Aruns
> mail )
> 1) A system call is pending
> 2) A signal handler is running
> are simultaneously possible?
Look in /usr/src/linux/fs/fifo.c for ERESTARTSYS. Pending signals are
checked even within long running (i.e. sleeping) system calls.
Similarly grep for EINTR in /usr/src/linux/fs for more instances of
checks for pending signals.
-Arun
--------------------------------------------------------------------
The Linux India Mailing List Archives are now available. Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.