DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] cmdline: finish at EOF
@ 2014-05-23 15:21 Cristian Dumitrescu
  2014-05-23 15:32 ` Olivier MATZ
  0 siblings, 1 reply; 6+ messages in thread
From: Cristian Dumitrescu @ 2014-05-23 15:21 UTC (permalink / raw)
  To: dev

Bug fix in cmdline library to allow return on EOF as opposed to infinite loop.

Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
---
 lib/librte_cmdline/cmdline.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
 mode change 100644 => 100755 lib/librte_cmdline/cmdline.c

diff --git a/lib/librte_cmdline/cmdline.c b/lib/librte_cmdline/cmdline.c
old mode 100644
new mode 100755
index 03a3fac..b3dc17c
--- a/lib/librte_cmdline/cmdline.c
+++ b/lib/librte_cmdline/cmdline.c
@@ -256,7 +256,7 @@ cmdline_interact(struct cmdline *cl)
 
 	c = -1;
 	while (1) {
-		if (read(cl->s_in, &c, 1) < 0)
+		if (read(cl->s_in, &c, 1) <= 0)
 			break;
 		if (cmdline_in(cl, &c, 1) < 0)
 			break;
-- 
1.7.7.6

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-05-28 13:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-23 15:21 [dpdk-dev] [PATCH] cmdline: finish at EOF Cristian Dumitrescu
2014-05-23 15:32 ` Olivier MATZ
2014-05-26 14:27   ` Olivier MATZ
2014-05-27 18:38     ` Dumitrescu, Cristian
2014-05-28 13:23       ` Olivier MATZ
2014-05-26 15:18   ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).