* [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
* Re: [dpdk-dev] [PATCH] cmdline: finish at EOF
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-26 15:18 ` Thomas Monjalon
0 siblings, 2 replies; 6+ messages in thread
From: Olivier MATZ @ 2014-05-23 15:32 UTC (permalink / raw)
To: Cristian Dumitrescu, dev
Hi Cristian,
On 05/23/2014 05:21 PM, Cristian Dumitrescu wrote:
> 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
Acked-by: Olivier Matz <olivier.matz@6wind.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dpdk-dev] [PATCH] cmdline: finish at EOF
2014-05-23 15:32 ` Olivier MATZ
@ 2014-05-26 14:27 ` Olivier MATZ
2014-05-27 18:38 ` Dumitrescu, Cristian
2014-05-26 15:18 ` Thomas Monjalon
1 sibling, 1 reply; 6+ messages in thread
From: Olivier MATZ @ 2014-05-26 14:27 UTC (permalink / raw)
To: Cristian Dumitrescu, dev
Hi Cristian,
On 05/23/2014 05:32 PM, Olivier MATZ wrote:
> On 05/23/2014 05:21 PM, Cristian Dumitrescu wrote:
>> 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
>
> Acked-by: Olivier Matz <olivier.matz@6wind.com>
By the way, I just noticed that this bug had already been fixed into
my cmdline project onto my personal website some time ago:
http://git.droids-corp.org/?p=libcmdline.git;a=commitdiff;h=52e1d5772d1f465a013e65b8ae6e43a027438ed6
Regards,
Olivier
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dpdk-dev] [PATCH] cmdline: finish at EOF
2014-05-23 15:32 ` Olivier MATZ
2014-05-26 14:27 ` Olivier MATZ
@ 2014-05-26 15:18 ` Thomas Monjalon
1 sibling, 0 replies; 6+ messages in thread
From: Thomas Monjalon @ 2014-05-26 15:18 UTC (permalink / raw)
To: Cristian Dumitrescu; +Cc: 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>
>
> Acked-by: Olivier Matz <olivier.matz@6wind.com>
Applied for version 1.7.0 with title:
cmdline: fix infinite loop after EOF
Thanks
--
Thomas
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dpdk-dev] [PATCH] cmdline: finish at EOF
2014-05-26 14:27 ` Olivier MATZ
@ 2014-05-27 18:38 ` Dumitrescu, Cristian
2014-05-28 13:23 ` Olivier MATZ
0 siblings, 1 reply; 6+ messages in thread
From: Dumitrescu, Cristian @ 2014-05-27 18:38 UTC (permalink / raw)
To: Olivier MATZ, dev
Hi Olivier,
Great, so then maybe we should plan for an update of the DPDK command line library to your latest code base.
Are the code changes massive, i.e. would this be a big task?
Thanks,
Cristian
-----Original Message-----
From: Olivier MATZ [mailto:olivier.matz@6wind.com]
Sent: Monday, May 26, 2014 3:27 PM
To: Dumitrescu, Cristian; dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] cmdline: finish at EOF
Hi Cristian,
On 05/23/2014 05:32 PM, Olivier MATZ wrote:
> On 05/23/2014 05:21 PM, Cristian Dumitrescu wrote:
>> 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
>
> Acked-by: Olivier Matz <olivier.matz@6wind.com>
By the way, I just noticed that this bug had already been fixed into
my cmdline project onto my personal website some time ago:
http://git.droids-corp.org/?p=libcmdline.git;a=commitdiff;h=52e1d5772d1f465a013e65b8ae6e43a027438ed6
Regards,
Olivier
--------------------------------------------------------------
Intel Shannon Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263
Business address: Dromore House, East Park, Shannon, Co. Clare
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [dpdk-dev] [PATCH] cmdline: finish at EOF
2014-05-27 18:38 ` Dumitrescu, Cristian
@ 2014-05-28 13:23 ` Olivier MATZ
0 siblings, 0 replies; 6+ messages in thread
From: Olivier MATZ @ 2014-05-28 13:23 UTC (permalink / raw)
To: Dumitrescu, Cristian, dev
Hi Christian,
On 05/27/2014 08:38 PM, Dumitrescu, Cristian wrote:
> Great, so then maybe we should plan for an update of the DPDK command line library to your latest code base.
>
> Are the code changes massive, i.e. would this be a big task?
There have been some reworks, but it is not a major merge. It will
require some few ones to be done carefully such as:
http://git.droids-corp.org/?p=libcmdline.git;a=commit;h=f32d30f48ddfb55b86efd695e0dd144e9d15401e
In order to ease the merge, it can be started from commit 090c2ba0d6b.
Since cmdline is quite isolated in dpdk, it should be manageable.
Currently, I do not get time to do such merge. But I'll be pleased
review patches that update it.
Regards,
Olivier
^ 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).