CVS: winex/scheduler sysdeps.c,1.24,1.25

[email protected]
Newsgroups gmane.comp.emulators.winex.cvs
Message-ID <[email protected]>
Subject: winex/scheduler sysdeps.c,1.24,1.25Update of /var/lib/cvsd/cvsroot/winex/scheduler
In directory agravaine:/tmp/cvs-serv30301/scheduler

Modified Files:
	sysdeps.c 
Log Message:
Ensure that if there are any non-wine threads running, that we can 
cleanly exit if that thread gets a SYSDEPS_AbortThread call. 


Index: sysdeps.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/scheduler/sysdeps.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- sysdeps.c	30 Mar 2007 15:48:33 -0000	1.24
+++ sysdeps.c	30 Mar 2007 15:49:42 -0000	1.25
@@ -526,6 +526,10 @@
  */
 void SYSDEPS_AbortThread( int status )
 {
+    /* Ensure that we cleanly exit if we get stopped in a non-wine thread */
+    if (__get_fs() == 0)
+        _exit( status);
+
     SIGNAL_Reset();
 
     close( NtCurrentTeb()->wait_fd[0] );
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.