Yet another hanging issue.

Kazuhiro Fujieda fujieda@jaist.ac.jp
Wed Mar 15 10:30:00 GMT 2000


>>> On Tue, 14 Mar 2000 12:47:12 -0500
>>> Chris Faylor <cgf@cygnus.com> said:

> >In an old snapshot such as cygwin1-19990115.dll, typing `^Z'
> >makes bash return to its prompt and doesn't abort notepad.
> 
> Ok.  I restored this behavior.  It wasn't as hard as I thought.

The latest fixes stop bash consuming a cpu, but typing `^Z'
can't wake up its prompt.

I tried tracking down this and found the following problem, but
I couldn't fix it.

In that case, SIGTSTP caused by bash wakes the "sig" thread in
the win32 process creating the notepad process.  This process
can't properly handle the signal because sync_proc_subproc has
been released by proc_terminate() in spawn_guts().

In the concrete, proc_subproc() can't clean waiting threads so
the "main" thread in the process can't start to execute the
signal handler.

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


More information about the Cygwin-developers mailing list