Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
52f34cf9
Commit
52f34cf9
authored
Jan 17, 2024
by
Marc-Aurel Zent
Committed by
Alexandre Julliard
Feb 14, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Use __pthread_kill() syscall wrapper.
parent
455086e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
mach.c
server/mach.c
+3
-4
No files found.
server/mach.c
View file @
52f34cf9
...
...
@@ -28,9 +28,6 @@
#include <stdarg.h>
#include <sys/types.h>
#include <unistd.h>
#ifdef HAVE_SYS_SYSCALL_H
#include <sys/syscall.h>
#endif
#ifdef HAVE_SYS_SYSCTL_H
#include <sys/sysctl.h>
#endif
...
...
@@ -358,6 +355,8 @@ done:
#endif
}
extern
int
__pthread_kill
(
mach_port_t
,
int
);
int
send_thread_signal
(
struct
thread
*
thread
,
int
sig
)
{
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
,
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
);
}
else
errno
=
ESRCH
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment