ping: fix aborting on keypress 35/31035/4
authorIvan Shvedunov <ivan4th@gmail.com>
Mon, 1 Feb 2021 11:11:10 +0000 (14:11 +0300)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Mon, 8 Feb 2021 12:32:04 +0000 (12:32 +0000)
commit7f23ecd151be06ac6f234224628ea305c5e0b41c
tree7e1c77c1bef2d3fa7f98cafccb3bf86a9b8b161a
parenta91cb45909642978592c7e21a8f6d2da2e44e506
ping: fix aborting on keypress

Type: fix

Currently ping stops on events like SOCKET_READ_EVENT,
which makes it hard to use over e.g. govpp as it aborts
immediately most of the time. With this patch, ping only
stops upon real CLI read / quit events.

Signed-off-by: Ivan Shvedunov <ivan4th@gmail.com>
Change-Id: Id7a8d0b0fdeb7bbc7b85240e398d27bd5199345b
src/plugins/ping/ping.c
src/vlib/unix/cli.c
src/vlib/unix/unix.h