* [PATCH] splice: fix missing F_NONBLOCK flag for single output
@ 2019-01-02 23:15 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2019-01-02 23:15 UTC (permalink / raw)
To: dtas-all
This fixes hanging when using a single audio output for
Linux users using splice.
---
lib/dtas/buffer/splice.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/dtas/buffer/splice.rb b/lib/dtas/buffer/splice.rb
index c6c0ee2..281ecfd 100644
--- a/lib/dtas/buffer/splice.rb
+++ b/lib/dtas/buffer/splice.rb
@@ -32,7 +32,7 @@ def discard(bytes)
def broadcast_one(targets, limit = nil)
# single output is always non-blocking
limit ||= MAX_AT_ONCE_1
- s = SleepyPenguin.splice(@to_io, targets[0], limit, F_MOVE, TRY)
+ s = SleepyPenguin.splice(@to_io, targets[0], limit, F_MOVE|F_NONBLOCK, TRY)
if Symbol === s
targets # our one and only target blocked on write
else
--
EW
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-01-02 23:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-02 23:15 [PATCH] splice: fix missing F_NONBLOCK flag for single output Eric Wong
everything related to duct tape audio suite (dtas)
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://80x24.org/dtas-all
git clone --mirror http://ou63pmih66umazou.onion/dtas-all
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V1 dtas-all dtas-all/ https://80x24.org/dtas-all \
dtas-all@nongnu.org
public-inbox-index dtas-all
Example config snippet for mirrors.
Newsgroups are available over NNTP:
nntp://news.public-inbox.org/inbox.comp.audio.dtas
nntp://ou63pmih66umazou.onion/inbox.comp.audio.dtas
note: .onion URLs require Tor: https://www.torproject.org/
code repositories for the project(s) associated with this inbox:
../../../dtas.git
AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git