[PATCH] signal fix for libao oss driver
Libao 0.8.6 (and the current svn version) has a bug in oss driver. It may skip some samples, meaning that it doesn't write them to the device, if a signal, such as SIGTSTP, happens at a bad time. write() returns an error on signal if no bytes have yet been committed to the device. In that case errno is set to EINTR, and the write should be run again. The same goes for EAGAIN.