[PATCH] server: Use syscall(2) instead of inline assembly on Mac OS, too.
Alexandre Julliard
julliard at winehq.org
Sat Oct 8 12:48:40 CDT 2011
Charles Davis <cdavis at mymail.mines.edu> writes:
> @@ -268,9 +256,9 @@ int send_thread_signal( struct thread *thread, int sig )
> if (!mach_port_extract_right( process_port, thread->unix_tid,
> MACH_MSG_TYPE_COPY_SEND, &port, &type ))
> {
> - if ((ret = pthread_kill_syscall( port, sig )) < 0)
> + if ((ret = syscall( SYS___pthread_kill, port, sig )) != 0)
> {
> - errno = -ret;
> + errno = ret;
syscall is supposed to take care of errno.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list