FreeBSD Bugzilla – Attachment 39584 Details for
Bug 62377
strace hangs when running programs from command line
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
strace-4.5.1.diff
strace-4.5.1.diff (text/plain; charset=us-ascii), 561 bytes, created by
Drazen Kacar
on 2004-12-26 16:15:21 UTC
(
hide
)
Description:
strace-4.5.1.diff
Filename:
MIME Type:
Creator:
Drazen Kacar
Created:
2004-12-26 16:15:21 UTC
Size:
561 bytes
patch
obsolete
>--- strace.c.orig Sun Dec 26 14:49:34 2004 >+++ strace.c Sun Dec 26 16:33:21 2004 >@@ -539,6 +539,23 @@ > cleanup(); > exit(1); > } >+#ifdef FREEBSD >+ { >+ int status; >+ pid_t err; >+ >+ do { >+ err = waitpid(pid, &status, WUNTRACED); >+ } while (err == -1 && errno == EINTR); >+ if (err == -1) { >+ fprintf(stderr, >+ "waitpid() failed: %s\n", >+ strerror(errno)); >+ cleanup(); >+ exit(1); >+ } >+ } >+#endif > #ifdef USE_PROCFS > if (proc_open(tcp, 0) < 0) { > fprintf(stderr, "trouble opening proc file\n");
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 62377
: 39584