4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 04:49:25 +08:00

Cygwin: dsp: Fix a bug that app hangs if it killed during write().

If app is killed during blocking write(), it sometimes hangs. This
patch fixes the issue.

Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
This commit is contained in:
Takashi Yano 2023-09-17 08:32:09 +09:00
parent c2d2bf34e6
commit 8484773f47

View File

@ -590,7 +590,8 @@ fhandler_dev_dsp::Audio_out::waitforallsent ()
while (Qisr2app_->query () != fh->fragstotal_)
{
debug_printf ("%d blocks in Qisr2app", Qisr2app_->query ());
Sleep (100);
cygwait (1);
sendcurrent ();
}
}