Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
22357ca3
Commit
22357ca3
authored
Feb 14, 2006
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: When possible, use tgkill instead of tkill syscall on Linux.
parent
94515450
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
8 deletions
+16
-8
context_alpha.c
server/context_alpha.c
+1
-1
context_i386.c
server/context_i386.c
+10
-2
context_powerpc.c
server/context_powerpc.c
+1
-1
context_sparc.c
server/context_sparc.c
+1
-1
context_x86_64.c
server/context_x86_64.c
+1
-1
ptrace.c
server/ptrace.c
+1
-1
thread.h
server/thread.h
+1
-1
No files found.
server/context_alpha.c
View file @
22357ca3
...
...
@@ -341,7 +341,7 @@ int get_thread_single_step( struct thread *thread )
}
/* send a signal to a specific thread */
int
tkill
(
int
pid
,
int
sig
)
int
tkill
(
int
tgid
,
int
pid
,
int
sig
)
{
/* FIXME: should do something here */
errno
=
ENOSYS
;
...
...
server/context_i386.c
View file @
22357ca3
...
...
@@ -560,16 +560,24 @@ int get_thread_single_step( struct thread *thread )
}
/* send a signal to a specific thread */
int
tkill
(
int
pid
,
int
sig
)
int
tkill
(
int
tgid
,
int
pid
,
int
sig
)
{
#ifdef __linux__
int
ret
;
__asm__
(
"pushl %%ebx
\n\t
"
"movl %2,%%ebx
\n\t
"
"int $0x80
\n\t
"
"popl %%ebx
\n\t
"
:
"=a"
(
ret
)
:
"0"
(
238
)
/*SYS_tkill*/
,
"r"
(
pid
),
"c"
(
sig
)
);
:
"0"
(
270
)
/*SYS_tgkill*/
,
"r"
(
tgid
),
"c"
(
pid
),
"d"
(
sig
)
);
if
(
ret
==
-
ENOSYS
)
__asm__
(
"pushl %%ebx
\n\t
"
"movl %2,%%ebx
\n\t
"
"int $0x80
\n\t
"
"popl %%ebx
\n\t
"
:
"=a"
(
ret
)
:
"0"
(
238
)
/*SYS_tkill*/
,
"r"
(
pid
),
"c"
(
sig
)
);
if
(
ret
>=
0
)
return
ret
;
errno
=
-
ret
;
return
-
1
;
...
...
server/context_powerpc.c
View file @
22357ca3
...
...
@@ -286,7 +286,7 @@ int get_thread_single_step( struct thread *thread )
}
/* send a signal to a specific thread */
int
tkill
(
int
pid
,
int
sig
)
int
tkill
(
int
tgid
,
int
pid
,
int
sig
)
{
/* FIXME: should do something here */
errno
=
ENOSYS
;
...
...
server/context_sparc.c
View file @
22357ca3
...
...
@@ -179,7 +179,7 @@ int get_thread_single_step( struct thread *thread )
}
/* send a signal to a specific thread */
int
tkill
(
int
pid
,
int
sig
)
int
tkill
(
int
tgid
,
int
pid
,
int
sig
)
{
/* FIXME: should do something here */
errno
=
ENOSYS
;
...
...
server/context_x86_64.c
View file @
22357ca3
...
...
@@ -271,7 +271,7 @@ int get_thread_single_step( struct thread *thread )
}
/* send a signal to a specific thread */
int
tkill
(
int
pid
,
int
sig
)
int
tkill
(
int
tgid
,
int
pid
,
int
sig
)
{
#ifdef __linux__
int
ret
;
...
...
server/ptrace.c
View file @
22357ca3
...
...
@@ -187,7 +187,7 @@ int send_thread_signal( struct thread *thread, int sig )
{
if
(
thread
->
unix_tid
!=
-
1
)
{
ret
=
tkill
(
thread
->
unix_tid
,
sig
);
ret
=
tkill
(
thread
->
unix_
pid
,
thread
->
unix_
tid
,
sig
);
if
(
ret
==
-
1
&&
errno
==
ENOSYS
)
ret
=
kill
(
thread
->
unix_pid
,
sig
);
}
else
ret
=
kill
(
thread
->
unix_pid
,
sig
);
...
...
server/thread.h
View file @
22357ca3
...
...
@@ -132,7 +132,7 @@ extern void *get_thread_ip( struct thread *thread );
extern
int
get_thread_single_step
(
struct
thread
*
thread
);
extern
void
get_thread_context
(
struct
thread
*
thread
,
CONTEXT
*
context
,
unsigned
int
flags
);
extern
void
set_thread_context
(
struct
thread
*
thread
,
const
CONTEXT
*
context
,
unsigned
int
flags
);
extern
int
tkill
(
int
pid
,
int
sig
);
extern
int
tkill
(
int
tgid
,
int
pid
,
int
sig
);
extern
int
send_thread_signal
(
struct
thread
*
thread
,
int
sig
);
extern
unsigned
int
global_error
;
/* global error code for when no thread is current */
...
...
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