diff options
author | Florent Thoumie <flz@FreeBSD.org> | 2005-04-12 07:55:40 +0000 |
---|---|---|
committer | Florent Thoumie <flz@FreeBSD.org> | 2005-04-12 07:55:40 +0000 |
commit | 4033f0f978b21a52db46569478b95fb6c184e3fb (patch) | |
tree | 6b8c53a926b5a2c9a858f743f07129186864e61e /devel | |
parent | - DISTVERSION is s/best/worst/ thing since Swiss knife. (diff) |
- Fix hangs issues.
PR: ports/62377
Submitted by: Nate Eldredge <nge@cs.hmc.edu>
Reviewed by: Drazen Kacar <dave@fly.srk.fer.hr>
Approved by: maintainer timeout (> 4 months)
Notes
Notes:
svn path=/head/; revision=133121
Diffstat (limited to 'devel')
-rw-r--r-- | devel/strace/Makefile | 1 | ||||
-rw-r--r-- | devel/strace/files/patch-strace.c | 26 |
2 files changed, 27 insertions, 0 deletions
diff --git a/devel/strace/Makefile b/devel/strace/Makefile index 3f6cca2dd323..df076243e9c5 100644 --- a/devel/strace/Makefile +++ b/devel/strace/Makefile @@ -7,6 +7,7 @@ PORTNAME= strace PORTVERSION= 4.5.1 +PORTREVISION= 1 CATEGORIES= devel sysutils MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/devel/strace/files/patch-strace.c b/devel/strace/files/patch-strace.c new file mode 100644 index 000000000000..9157497dc3d1 --- /dev/null +++ b/devel/strace/files/patch-strace.c @@ -0,0 +1,26 @@ +--- 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"); |