aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflz <flz@FreeBSD.org>2005-04-12 15:55:40 +0800
committerflz <flz@FreeBSD.org>2005-04-12 15:55:40 +0800
commit9ee0ee84cb970d081cd4dfc9aedbbced0ee2be46 (patch)
treeaf8d0a4214806d1a7cb9402c4d3bd8c87af04726
parent8ee140514fb99cca21159666bf0d6aca0ac0209e (diff)
downloadfreebsd-ports-gnome-9ee0ee84cb970d081cd4dfc9aedbbced0ee2be46.tar.gz
freebsd-ports-gnome-9ee0ee84cb970d081cd4dfc9aedbbced0ee2be46.tar.zst
freebsd-ports-gnome-9ee0ee84cb970d081cd4dfc9aedbbced0ee2be46.zip
- 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)
-rw-r--r--devel/strace/Makefile1
-rw-r--r--devel/strace/files/patch-strace.c26
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");