]> git.tuebingen.mpg.de Git - paraslash.git/commit
gui: Avoid busy loop if audiod is down.
authorAndre Noll <maan@systemlinux.org>
Sun, 6 Jun 2010 16:32:11 +0000 (18:32 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 6 Jun 2010 16:32:11 +0000 (18:32 +0200)
commit5ebdf3a92f55c582f7b23236b4b403faa76f1f19
treef9a0bd54202c04732e997511ef8e0cd1702e5f2a
parent13bcca2442dea6c5782f6281dc48dce3a86e1281
gui: Avoid busy loop if audiod is down.

The old approach to sleep one second is not sufficient and might still lead
to a busy loop as the call to sleep() might be interrupted by SIGCHILD.

So check the return value of sleep() and sleep again if it is not zero.
gui.c