Summary: | ASTERISK-06544: [patch] rawplayer consumes all CPU | ||
Reporter: | Bruno Rocha (bruno_rocha) | Labels: | |
Date Opened: | 2006-03-14 09:44:46.000-0600 | Date Closed: | 2008-01-15 17:28:04.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Resources/res_musiconhold |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) rawplayer-check_for_errors.v1.patch | |
Description: | When using rawplayer to play MusicOnHold, and Asterisk dies unexpectedly, rawplayer stays running and consuming all the available CPU. This causes the new Asterisk process to drop calls, because of the CPU load. I'm attaching a trivial patch, so that rawplayer aborts on errors. ****** ADDITIONAL INFORMATION ****** Disclaimer was faxed this morning. | ||
Comments: | By: Russell Bryant (russell) 2006-03-14 10:13:06.000-0600 added to the trunk in revision 12893, thanks! By: Digium Subversion (svnbot) 2008-01-15 17:28:04.000-0600 Repository: asterisk Revision: 12893 U trunk/contrib/utils/rawplayer.c ------------------------------------------------------------------------ r12893 | russell | 2008-01-15 17:28:04 -0600 (Tue, 15 Jan 2008) | 2 lines catch read/write errors and exit if they occur (issue ASTERISK-6544) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=12893 |