summaryrefslogtreecommitdiff
path: root/net/asterisk-devel/files/patch-pbx::pbx_wilcalu.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/asterisk-devel/files/patch-pbx::pbx_wilcalu.c')
-rw-r--r--net/asterisk-devel/files/patch-pbx::pbx_wilcalu.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/net/asterisk-devel/files/patch-pbx::pbx_wilcalu.c b/net/asterisk-devel/files/patch-pbx::pbx_wilcalu.c
new file mode 100644
index 000000000000..41722c65568d
--- /dev/null
+++ b/net/asterisk-devel/files/patch-pbx::pbx_wilcalu.c
@@ -0,0 +1,14 @@
+--- pbx/pbx_wilcalu.c.orig Tue Apr 26 10:00:28 2005
++++ pbx/pbx_wilcalu.c Tue Apr 26 10:03:42 2005
+@@ -82,6 +82,11 @@
+ fds[0].events = POLLIN;
+ poll(fds, 1, -1);
+ bytes=read(fd,buf,256);
++ if (bytes <= 0) {
++ /* XXX error on device, sleep a bit before retrying */
++ sleep(1);
++ continue;
++ }
+ buf[(int)bytes]=0;
+
+ if(bytes>0){