Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <40CFD6E5.1070709@luukku.com> Date: Wed, 16 Jun 2004 08:13:09 +0300 From: Jani tiainen User-Agent: Mozilla Thunderbird 0.7a (Windows/20040612) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Ctrl-Z fails to suspend Windows programs References: <87n035b3kn DOT fsf AT eu DOT citrix DOT com> <20040615120142 DOT GA30776 AT trixie DOT casa DOT cgf DOT cx> <40CEED71 DOT 7020407 AT luukku DOT com> <20040615131311 DOT GB30776 AT trixie DOT casa DOT cgf DOT cx> In-Reply-To: <20040615131311.GB30776@trixie.casa.cgf.cx> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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/