[PATCH] system-cancel part2

Thomas Pfaff tpfaff@gmx.net
Wed Jan 15 13:19:00 GMT 2003



On Wed, 15 Jan 2003, Robert Collins wrote:

> On Wed, 2003-01-15 at 22:23, Thomas Pfaff wrote:
> > This patch will make sure that the signal handlers that are saved in the
> > system call are restored even if the thread got cancelled. Since
> > spawn_guts uses waitpid when mode is _P_WAIT spawn_guts is a cancellation
> > point.
> >
> > Attached is the patch and a new test case.
>
> The new test case doesn't appear to check that the signal handlers where
> saved. Am I misreading that?
>

The test case was created to prove that system is a cancellation point
even if the child process is already created and the system call is
waiting on child termination.

Atached are two test cases that will test if the signal handlers are
restored when the call get cancelled and has waited successfully for the
child.

Thomas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cancel11.c
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20030115/72fe9088/attachment.c>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cancel12.c
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20030115/72fe9088/attachment-0001.c>


More information about the Cygwin-patches mailing list