Re: When possible, use tgkill instead of tkill syscall on Linux.
13 Feb
2006
13 Feb
'06
2:38 p.m.
Eric Pouech wrote:
diff --git a/server/context_x86_64.c b/server/context_x86_64.c index c102510..e5d8fc2 100644 --- a/server/context_x86_64.c +++ b/server/context_x86_64.c @@ -271,12 +271,12 @@ int get_thread_single_step( struct threa }
/* 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__( "syscall" : "=a" (ret) - : "0" (200) /*SYS_tkill*/, "D" (pid), "S" (sig) ); + : "0" (200) /*SYS_tkill*/, "D" (tid), "S" (sig) );
Shouldn't this line change "pid" to "tgid" instead of "tid"? -- Rob Shearman
7332
Age (days ago)
7332
Last active (days ago)
0 comments
1 participants
participants (1)
-
Robert Shearman