Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
5c8b44cd
Commit
5c8b44cd
authored
14 years ago
by
Michael Stefaniuc
Committed by
Alexandre Julliard
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
server: Simplify tkill() and remove unreachable code (Smatch).
parent
279677b7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/ptrace.c
+4
-5
4 additions, 5 deletions
server/ptrace.c
with
4 additions
and
5 deletions
server/ptrace.c
+
4
−
5
View file @
5c8b44cd
...
...
@@ -213,18 +213,17 @@ static int wait4_thread( struct thread *thread, int signal )
static
inline
int
tkill
(
int
tgid
,
int
pid
,
int
sig
)
{
#ifdef __linux__
int
ret
=
-
ENOSYS
;
# ifdef __i386__
ret
=
syscall
(
270
/*SYS_tgkill*/
,
tgid
,
pid
,
sig
);
int
ret
=
syscall
(
270
/*SYS_tgkill*/
,
tgid
,
pid
,
sig
);
if
(
ret
<
0
&&
errno
==
-
ENOSYS
)
ret
=
syscall
(
238
/*SYS_tkill*/
,
pid
,
sig
);
return
ret
;
# elif defined(__x86_64__)
return
syscall
(
200
/*SYS_tkill*/
,
pid
,
sig
);
# endif
if
(
ret
>=
0
)
return
ret
;
errno
=
-
ret
;
# else
errno
=
ENOSYS
;
return
-
1
;
# endif
#elif defined(__FreeBSD__) && defined(HAVE_THR_KILL2)
return
thr_kill2
(
tgid
,
pid
,
sig
);
#else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment