From c82ed4f02b98bdc0abe1b4113870d9096a868e06 Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Mon, 29 Jan 2007 18:59:51 +0000 Subject: [PATCH] Fix the panic: sleeping without a mutex problem on CURRENT. PR: ports/101958 Submitted by: Anish Mistry --- misc/zaptel/Makefile | 1 + misc/zaptel/files/patch-zaptel::zaptel.c | 11 +++++++++++ net/zaptel12/Makefile | 1 + net/zaptel12/files/patch-zaptel::zaptel.c | 11 +++++++++++ 4 files changed, 24 insertions(+) create mode 100644 misc/zaptel/files/patch-zaptel::zaptel.c create mode 100644 net/zaptel12/files/patch-zaptel::zaptel.c diff --git a/misc/zaptel/Makefile b/misc/zaptel/Makefile index d4d6dd8f7658..7c2bc363a5de 100644 --- a/misc/zaptel/Makefile +++ b/misc/zaptel/Makefile @@ -7,6 +7,7 @@ PORTNAME= zaptel PORTVERSION= 1.1 +PORTREVISION= 1 CATEGORIES= misc MASTER_SITES= http://www.pbxpress.com/~gonzo/ DISTNAME= ${PORTNAME}-bsd-${PORTVERSION} diff --git a/misc/zaptel/files/patch-zaptel::zaptel.c b/misc/zaptel/files/patch-zaptel::zaptel.c new file mode 100644 index 000000000000..6942f8fbdbe6 --- /dev/null +++ b/misc/zaptel/files/patch-zaptel::zaptel.c @@ -0,0 +1,11 @@ +--- zaptel/zaptel.c.orig Sun Jun 25 14:21:49 2006 ++++ zaptel/zaptel.c Fri Aug 11 11:56:20 2006 +@@ -397,7 +397,7 @@ + + int schluffen(void *q) + { +- int rc = tsleep(q, PZERO | PCATCH, "schluffen", 0); ++ int rc = tsleep(q, PZERO | PCATCH, "schluffen", 10); + switch(rc) + { + case EINTR: diff --git a/net/zaptel12/Makefile b/net/zaptel12/Makefile index d4d6dd8f7658..7c2bc363a5de 100644 --- a/net/zaptel12/Makefile +++ b/net/zaptel12/Makefile @@ -7,6 +7,7 @@ PORTNAME= zaptel PORTVERSION= 1.1 +PORTREVISION= 1 CATEGORIES= misc MASTER_SITES= http://www.pbxpress.com/~gonzo/ DISTNAME= ${PORTNAME}-bsd-${PORTVERSION} diff --git a/net/zaptel12/files/patch-zaptel::zaptel.c b/net/zaptel12/files/patch-zaptel::zaptel.c new file mode 100644 index 000000000000..6942f8fbdbe6 --- /dev/null +++ b/net/zaptel12/files/patch-zaptel::zaptel.c @@ -0,0 +1,11 @@ +--- zaptel/zaptel.c.orig Sun Jun 25 14:21:49 2006 ++++ zaptel/zaptel.c Fri Aug 11 11:56:20 2006 +@@ -397,7 +397,7 @@ + + int schluffen(void *q) + { +- int rc = tsleep(q, PZERO | PCATCH, "schluffen", 0); ++ int rc = tsleep(q, PZERO | PCATCH, "schluffen", 10); + switch(rc) + { + case EINTR: