Wait_sig can't dispatch SIGCONT.

Christopher Faylor cgf@redhat.com
Wed Jan 10 05:55:00 GMT 2001


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;
>


More information about the Cygwin-patches mailing list