From 4382a63faf11cbd8183330f8ce2561b8add4f416 Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Tue, 3 May 2005 13:39:48 +0000 Subject: pbx_wilcalu.c: new patch for this file, smooths the effects of an unhandled error Cexiting from poll() and resulting otherwise in this process taking 100% of the CPU rtp.c: updated patch for rtp.c, removes a misleading 'checksum error' message when in reality the recvfrom() just returned no data; chan_oss.c: replacement for the old chan_oss.c - the changes are so massive that having a patch would be completely unreadable. Among other things this lets you change many /dev/dsp parameters from the config file, to ease adapting to the idiosincracies of various sound cards and drivers. It also supports multiple soundcards on the same box, which might be useful in some cases. Submitted by: luigi Add WITHOUT_MYSQL knob. Suggested by: phantom --- net/asterisk-devel/files/patch-pbx::pbx_wilcalu.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 net/asterisk-devel/files/patch-pbx::pbx_wilcalu.c (limited to 'net/asterisk-devel/files/patch-pbx::pbx_wilcalu.c') 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){ -- cgit v1.2.3