Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 155246 Details for
Bug 240962
Hangs and/or multithreaded process left Stopped (T) on CTRL-C of strace
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Bugfix.
strace-4.5.15-tkill.patch (text/plain), 1.20 KB, created by
Jan Kratochvil
on 2007-05-23 14:40:51 UTC
(
hide
)
Description:
Bugfix.
Filename:
MIME Type:
Creator:
Jan Kratochvil
Created:
2007-05-23 14:40:51 UTC
Size:
1.20 KB
patch
obsolete
>2007-05-23 Jan Kratochvil <jan.kratochvil@redhat.com> > > * strace.c [LINUX] (tkill): New definition. > [LINUX] (detach): Use tkill(2) instead of kill(2). > >diff -u -rup strace-4.5.15-detach-zombie/strace.c strace-4.5.15/strace.c >--- strace-4.5.15-detach-zombie/strace.c 2007-05-23 16:09:24.000000000 +0200 >+++ strace-4.5.15/strace.c 2007-05-23 16:32:55.000000000 +0200 >@@ -46,6 +46,11 @@ > #include <limits.h> > #include <dirent.h> > >+#ifdef LINUX >+#include <sys/syscall.h> >+#define tkill(tid, sig) syscall (SYS_tkill, (tid), (sig)) >+#endif >+ > #if defined(IA64) && defined(LINUX) > # include <asm/ptrace_offsets.h> > #endif >@@ -1323,11 +1328,14 @@ int sig; > /* Shouldn't happen. */ > perror("detach: ptrace(PTRACE_DETACH, ...)"); > } >- else if (kill(tcp->pid, 0) < 0) { >+ /* kill() may choose arbitrarily the target task of the process group >+ while we wait on a specific TID below. PID process waits become TID >+ task specific waits for process under ptrace(2). */ >+ else if (tkill(tcp->pid, 0) < 0) { > if (errno != ESRCH) > perror("detach: checking sanity"); > } >- else if (kill(tcp->pid, SIGSTOP) < 0) { >+ else if (tkill(tcp->pid, SIGSTOP) < 0) { > if (errno != ESRCH) > perror("detach: stopping child"); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 240962
:
155244
|
155246
|
155329
|
155354