This is the mail archive of the cygwin 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: Ctrl-Z fails to suspend Windows programs


Christopher Faylor wrote:
On Tue, Jun 15, 2004 at 03:37:05PM +0300, Jani tiainen wrote:

Christopher Faylor wrote:

On Tue, Jun 15, 2004 at 09:58:16AM +0100, John Cooper wrote:

Is it a known limitation that "native" Windows programs cannot be
suspended?

Yes. Window programs do not understand cygwin signals.

Thats true for cygwin part. Native programs still can be suspended/resumed but not by cygwin (or shell that is running and waiting finishing of active process).


It is true for any part that Windows programs do not understand cygwin
signals.

There is no way to reliably suspend a Windows programs.

Yes there is ( piece of pseudo code):


For Each Thread THREAD_Y in Process PROCESS_X
	Call_Win32API SuspendThread(THREAD_Y.Handle)
Next

NOTE: In Win2k and later you need THREAD_SUSPEND_RESUME rights for particular thread.

--

Jani Tiainen

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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