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 <hchaume...@baylibre.com> --- src/hardware/demo/demo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hardware/demo/demo.c b/src/hardware/demo/demo.c index a208c7d..3e54f56 100644 --- a/src/hardware/demo/demo.c +++ b/src/hardware/demo/demo.c @@ -922,6 +922,8 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data) g_io_channel_shutdown(devc->channel, FALSE, NULL); g_io_channel_unref(devc->channel); devc->channel = NULL; + close(devc->pipe_fds[0]); + close(devc->pipe_fds[1]); /* Send last packet. */ packet.type = SR_DF_END; -- 2.5.0 ------------------------------------------------------------------------------ _______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel