X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=anykey.c;h=24970c2c299a26733dc754a34a3c586925367be5;hp=1e006b52d3f4ba718d61cbff31b6fb4ac3b4c10b;hb=e947e227a2fd904d5617858aeb7e34239efa964d;hpb=f1f703bf0dc63e2b6149f4cfba294253991d04f7 diff --git a/anykey.c b/anykey.c index 1e006b5..24970c2 100644 --- a/anykey.c +++ b/anykey.c @@ -1,5 +1,5 @@ /* - * This file is part of the sigrok project. + * This file is part of the sigrok-cli project. * * Copyright (C) 2011 Bert Vermeulen * @@ -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;