CVS: winex/server macosx.c,1.2,1.3

[email protected] 31 Jul 2007 19:56:22 -0000
Newsgroups gmane.comp.emulators.winex.cvs
Message-ID <[email protected]>
Subject: winex/server macosx.c,1.2,1.3Update of /var/lib/cvsd/cvsroot/winex/server
In directory agravaine:/tmp/cvs-serv1830/server

Modified Files:
	macosx.c 
Log Message:

- ExitProcess needs to kill threads prior to PROCESS_DETACH notifications
- fix wineserver on the Mac to actually be able to kill threads



Index: macosx.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/server/macosx.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- macosx.c	31 Jul 2007 19:50:17 -0000	1.2
+++ macosx.c	31 Jul 2007 19:56:20 -0000	1.3
@@ -29,11 +29,14 @@
 void detach_thread( struct thread *thread, int sig )
 {
     if (!thread->unix_tid_or_pid) return;
-    if (sig) {
-       /* FIXME - send signal to thread wine_tkill( thread->unix_tid_or_pid, sig ); */
+    if (sig)
+    {
+       thread_terminate (thread->thread_port);
+       return;
     }
 
-    if (thread->suspend + thread->process->suspend > 0) continue_thread( thread );
+    if (thread->suspend + thread->process->suspend > 0)
+       continue_thread (thread);
 }
 
 /* stop a thread (at the Unix level) */