From: Bert Vermeulen Date: Mon, 29 Apr 2013 22:07:16 +0000 (+0200) Subject: Remove anykey input source after it fired X-Git-Tag: sigrok-cli-0.4.0~6 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=89a9bb0ef5929fc3d1b629f919ffc6141cdf2fb2;p=sigrok-cli.git Remove anykey input source after it fired --- diff --git a/anykey.c b/anykey.c index 70e2248..24970c2 100644 --- a/anykey.c +++ b/anykey.c @@ -42,6 +42,7 @@ static int received_anykey(int fd, int revents, void *cb_data) (void)revents; (void)cb_data; + sr_session_source_remove(STDIN_FILENO); sr_session_stop(); return TRUE;