commit e58f1b717a14a688e2a11689e7bc630b9c97d9d7 branch 4.1 Author: Stephan Kulow Date: Fri Apr 21 10:39:27 2006 +0000 handle errors of write (I know it's only a fake device, but that shouldn't hinder us to write correct code :) diff --git a/tests/fakebackend/audiooutput.cpp b/tests/fakebackend/audiooutput.cpp index 611696a..7a59a69 100644 --- a/tests/fakebackend/audiooutput.cpp +++ b/tests/fakebackend/audiooutput.cpp @@ -105,6 +105,11 @@ void AudioOutput::processBuffer( const QVector& buffer ) while( size > 0 ) { written = m_dsp.write( towrite, size ); + if (written < 0) { + if (errno == EINTR) + continue; + break; + } size = size - written; if( size > 0 ) {