This is the mail archive of the cygwin-patches@cygwin.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]
Other format: [Raw text]

Re: [PATCH] suspend all thread on SIGSTOP


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


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