This is the mail archive of the cygwin-patches@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Wait_sig can't dispatch SIGCONT.


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;

____
  | AIST      Kazuhiro Fujieda <fujieda@jaist.ac.jp>
  | HOKURIKU  School of Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]