Ctrl-Z fails to suspend Windows programs
Dave Korn
dk@artimi.com
Wed Jun 16 09:20:00 GMT 2004
> -----Original Message-----
> From: cygwin-owner On Behalf Of Jani tiainen
> Sent: 16 June 2004 06:13
> To: cygwin
> Subject: Re: Ctrl-Z fails to suspend Windows programs
>
> Christopher Faylor wrote:
> > 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.
Arbitrarily suspending threads at random stages of execution can be very
bad news if they hold vital system locks....
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
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/
More information about the Cygwin
mailing list