]> sigrok.org Git - libsigrok.git/commit
libsigrok: demo: close pipes on dev_acquisition_stop()
authorHubert CHAUMETTE <redacted>
Fri, 31 Jul 2015 07:44:09 +0000 (09:44 +0200)
committerUwe Hermann <redacted>
Fri, 31 Jul 2015 22:02:56 +0000 (00:02 +0200)
commit6c7d80afcaf043eb8128a3102519032850fec1af
treecac74a654836e379d02d42e5952a0ade5747c610
parent37875f7506143d97f44014260f07e6408ee8c9dc
libsigrok: demo: close pipes on dev_acquisition_stop()

Fixes a bug where new acquisition failes due to leftover pipes from
previous acquisitions:
sr: demo: dev_acquisition_start: pipe() failed
Indeed, PulseView had 2024 pipes opened. With this fix, it stabilizes at
33 with sampling thread active.

Signed-off-by: Hubert CHAUMETTE <redacted>
src/hardware/demo/demo.c