This is the mail archive of the
cygwin-patches@sources.redhat.com
mailing list for the Cygwin project.
Re: Wait_sig can't dispatch SIGCONT.
- To: cygwin-patches at cygwin dot com
- Subject: Re: Wait_sig can't dispatch SIGCONT.
- From: Christopher Faylor <cgf at redhat dot com>
- Date: Wed, 10 Jan 2001 08:55:52 -0500
- References: <s1sd7dvplpg.fsf@jaist.ac.jp>
- Reply-To: cygwin-patches at cygwin dot com
Thanks. Applied.
cgf
On Wed, Jan 10, 2001 at 10:42:51PM +0900, Kazuhiro Fujieda wrote:
>Wait_sig can't dispatch SIGCONT.
>For example, cat will choke aftern the following session.
>$ cat
>^Z
>[1]+ Stopped cat
>$ fg
>cat
>
>The following patch can solve this problem.
>
>ChangeLog:
>Wed Jan 10 22:08:30 2001 Kazuhiro Fujieda <fujieda@jaist.ac.jp>
>
> * sigproc.cc (wait_sig): Don't block SIGCONT incorrectly.
>
>Index: sigproc.cc
>===================================================================
>RCS file: /cvs/src/src/winsup/cygwin/sigproc.cc,v
>retrieving revision 1.67
>diff -u -p -r1.67 sigproc.cc
>--- sigproc.cc 2001/01/08 04:02:01 1.67
>+++ sigproc.cc 2001/01/10 13:03:20
>@@ -1150,7 +1150,7 @@ wait_sig (VOID *)
>
> if (sig > 0 && sig != SIGKILL && sig != SIGSTOP &&
> (sigismember (& myself->getsigmask (), sig) ||
>- myself->process_state & PID_STOPPED))
>+ (sig != SIGCONT && myself->process_state & PID_STOPPED)))
> {
> sigproc_printf ("sig %d blocked", sig);
> break;
>