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
0c4f152e
Commit
0c4f152e
authored
Aug 23, 2007
by
Tijl Coosemans
Committed by
Alexandre Julliard
Aug 23, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Use thr_kill2 syscall to signal threads on FreeBSD.
parent
d0ce7ec5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
4 deletions
+17
-4
configure
configure
+2
-0
configure.ac
configure.ac
+1
-0
config.h.in
include/config.h.in
+3
-0
ptrace.c
server/ptrace.c
+11
-4
No files found.
configure
View file @
0c4f152e
...
...
@@ -15689,6 +15689,7 @@ esac
for
ac_func
in
\
_pclose
\
_popen
\
...
...
@@ -15746,6 +15747,7 @@ for ac_func in \
strncasecmp
\
strtold
\
tcgetattr
\
thr_kill2
\
timegm
\
usleep
\
vsnprintf
\
...
...
configure.ac
View file @
0c4f152e
...
...
@@ -1287,6 +1287,7 @@ AC_CHECK_FUNCS(\
strncasecmp \
strtold \
tcgetattr \
thr_kill2 \
timegm \
usleep \
vsnprintf \
...
...
include/config.h.in
View file @
0c4f152e
...
...
@@ -849,6 +849,9 @@
/* Define to 1 if you have the <termios.h> header file. */
#undef HAVE_TERMIOS_H
/* Define to 1 if you have the `thr_kill2' function. */
#undef HAVE_THR_KILL2
/* Define to 1 if you have the `timegm' function. */
#undef HAVE_TIMEGM
...
...
server/ptrace.c
View file @
0c4f152e
...
...
@@ -35,6 +35,10 @@
#ifdef HAVE_SYS_WAIT_H
# include <sys/wait.h>
#endif
#ifdef HAVE_SYS_THR_H
# include <sys/ucontext.h>
# include <sys/thr.h>
#endif
#include <unistd.h>
#include "ntstatus.h"
...
...
@@ -206,9 +210,8 @@ static int wait4_thread( struct thread *thread, int signal )
/* send a signal to a specific thread */
static
inline
int
tkill
(
int
tgid
,
int
pid
,
int
sig
)
{
int
ret
=
-
ENOSYS
;
#ifdef __linux__
int
ret
=
-
ENOSYS
;
# ifdef __i386__
__asm__
(
"pushl %%ebx
\n\t
"
"movl %2,%%ebx
\n\t
"
...
...
@@ -227,11 +230,15 @@ static inline int tkill( int tgid, int pid, int sig )
__asm__
(
"syscall"
:
"=a"
(
ret
)
:
"0"
(
200
)
/*SYS_tkill*/
,
"D"
(
pid
),
"S"
(
sig
)
);
# endif
#endif
/* __linux__ */
if
(
ret
>=
0
)
return
ret
;
errno
=
-
ret
;
return
-
1
;
#elif defined(__FreeBSD__) && defined(HAVE_THR_KILL2)
return
thr_kill2
(
tgid
,
pid
,
sig
);
#else
errno
=
ENOSYS
;
return
-
1
;
#endif
}
/* initialize the process tracing mechanism */
...
...
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