cmdline: fix infinite loop after EOF
authorCristian Dumitrescu <cristian.dumitrescu@intel.com>
Fri, 23 May 2014 15:21:24 +0000 (16:21 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 26 May 2014 15:16:39 +0000 (17:16 +0200)
commitcd64eeac116d3bb4871d114b105440b4dd11b8e0
treec58fcbc90f07fe372e00e5ae5c107f1552c697e4
parent174572477028b7f04700389e38f87d2ba01a0adc
cmdline: fix infinite loop after EOF

Stop on EOF when reading commands from a file or a pipe.

Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_cmdline/cmdline.c [changed mode: 0644->0755]