X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fdemo%2Fdemo.c;h=91f105f356d524c31533aaf0a31d15d55c8e0f93;hb=e6e8f8e0531805a9215eebcb0d4d270a5afa6a8d;hp=0cd23e3c9ae51bb962e1b5ed5409350f0261f9c2;hpb=249ae2be8f0e5132d601ab431ac8783b5b1c7439;p=libsigrok.git diff --git a/hardware/demo/demo.c b/hardware/demo/demo.c index 0cd23e3c..91f105f3 100644 --- a/hardware/demo/demo.c +++ b/hardware/demo/demo.c @@ -440,6 +440,8 @@ static int hw_dev_acquisition_start(int dev_index, void *cb_data) ctx->channels[0] = g_io_channel_unix_new(ctx->pipe_fds[0]); ctx->channels[1] = g_io_channel_unix_new(ctx->pipe_fds[1]); + g_io_channel_set_flags(ctx->channels[0], G_IO_FLAG_NONBLOCK, NULL); + /* Set channel encoding to binary (default is UTF-8). */ g_io_channel_set_encoding(ctx->channels[0], NULL, NULL); g_io_channel_set_encoding(ctx->channels[1], NULL, NULL);