[PATCH] suspend all thread on SIGSTOP
Thomas Pfaff
tpfaff@gmx.net
Mon Nov 3 07:35:00 GMT 2003
Christopher Faylor wrote:
> On Fri, Oct 31, 2003 at 10:17:37PM +0100, Thomas Pfaff wrote:
>
>>This time with attachment.
>>
>>This patch suspends all threads on SIGSTOP and resumes them on SIGCONT.
>>The corresponding functions in the pthread class are already committed.
>>
>>Thomas
>>
>>2003-10-31 Thomas Pfaff <tpfaff@gmx.net>
>>
>> * exceptions.cc (sig_handle_tty_stop): Suspend all
>> threads on SIGSTOP, resume them on SIGCONT.
>
>
> You can't suspend threads like this because SuspendThread can
> hang in some situations, like when a thread is doing I/O. That's why
> there is a WaitForSingleObject here rather than just suspending the
> thread.
Too bad.
Thomas
More information about the Cygwin-patches
mailing list