mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 18:37:17 +00:00
server: Use __pthread_kill() syscall wrapper.
This commit is contained in:
parent
455086e295
commit
52f34cf976
|
@ -28,9 +28,6 @@
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#ifdef HAVE_SYS_SYSCALL_H
|
|
||||||
#include <sys/syscall.h>
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_SYS_SYSCTL_H
|
#ifdef HAVE_SYS_SYSCTL_H
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -358,6 +355,8 @@ done:
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern int __pthread_kill( mach_port_t, int );
|
||||||
|
|
||||||
int send_thread_signal( struct thread *thread, int sig )
|
int send_thread_signal( struct thread *thread, int sig )
|
||||||
{
|
{
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
@ -371,7 +370,7 @@ int send_thread_signal( struct thread *thread, int sig )
|
||||||
if (!mach_port_extract_right( process_port, thread->unix_tid,
|
if (!mach_port_extract_right( process_port, thread->unix_tid,
|
||||||
MACH_MSG_TYPE_COPY_SEND, &port, &type ))
|
MACH_MSG_TYPE_COPY_SEND, &port, &type ))
|
||||||
{
|
{
|
||||||
ret = syscall( SYS___pthread_kill, port, sig );
|
ret = __pthread_kill( port, sig );
|
||||||
mach_port_deallocate( mach_task_self(), port );
|
mach_port_deallocate( mach_task_self(), port );
|
||||||
}
|
}
|
||||||
else errno = ESRCH;
|
else errno = ESRCH;
|
||||||
|
|
Loading…
Reference in a new issue