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
185f6370
Commit
185f6370
authored
Dec 27, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Use the tgkill system call on all Linux platforms.
parent
086848a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
ptrace.c
server/ptrace.c
+5
-10
No files found.
server/ptrace.c
View file @
185f6370
...
...
@@ -37,6 +37,9 @@
#ifdef HAVE_SYS_WAIT_H
# include <sys/wait.h>
#endif
#ifdef HAVE_SYS_SYSCALL_H
# include <sys/syscall.h>
#endif
#ifdef HAVE_SYS_THR_H
# include <sys/ucontext.h>
# include <sys/thr.h>
...
...
@@ -213,17 +216,9 @@ static int wait4_thread( struct thread *thread, int signal )
static
inline
int
tkill
(
int
tgid
,
int
pid
,
int
sig
)
{
#ifdef __linux__
# ifdef __i386__
int
ret
=
syscall
(
270
/*SYS_tgkill*/
,
tgid
,
pid
,
sig
);
if
(
ret
<
0
&&
errno
==
-
ENOSYS
)
ret
=
syscall
(
238
/*SYS_tkill*/
,
pid
,
sig
);
int
ret
=
syscall
(
SYS_tgkill
,
tgid
,
pid
,
sig
);
if
(
ret
<
0
&&
errno
==
ENOSYS
)
ret
=
syscall
(
SYS_tkill
,
pid
,
sig
);
return
ret
;
# elif defined(__x86_64__)
return
syscall
(
234
/*SYS_tgkill*/
,
tgid
,
pid
,
sig
);
# else
errno
=
ENOSYS
;
return
-
1
;
# endif
#elif defined(__FreeBSD__) && defined(HAVE_THR_KILL2)
return
thr_kill2
(
tgid
,
pid
,
sig
);
#else
...
...
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