mirror of
https://git.freebsd.org/ports.git
synced 2025-06-23 05:30:31 -04:00
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
14 lines
346 B
C
14 lines
346 B
C
--- 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){
|