Re: [PATCH] querycmd: only write() once

2013-08-30 Thread Shawn Landden
On Fri, Aug 30, 2013 at 6:41 PM, Guillem Jover wrote: > Hi! > > [ Given the three variants, maybe this was sent by accident? Anyway. ] > On Fri, 2013-08-30 at 15:29:24 -0700, Shawn Landden wrote: > > This way a program reading from dpkg-query through a pipe will get the > > output in a single r

Re: [PATCH] querycmd: only write() once

2013-08-30 Thread Guillem Jover
Hi! [ Given the three variants, maybe this was sent by accident? Anyway. ] On Fri, 2013-08-30 at 15:29:24 -0700, Shawn Landden wrote: > This way a program reading from dpkg-query through a pipe will get the > output in a single read() It would be good to know the motivation behind this. I'm gues

[PATCH] querycmd: only write() once

2013-08-30 Thread Shawn Landden
This way a program reading from dpkg-query through a pipe will get the output in a single read() --- src/querycmd.c | 26 ++ 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/src/querycmd.c b/src/querycmd.c index a39ee25..e223ab5 100644 --- a/src/querycmd.c +++

[PATCH] querycmd: only write() once

2013-08-30 Thread Shawn Landden
This way a program reading from dpkg-query through a pipe will get the output in a single read() --- src/querycmd.c | 27 +++ 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/src/querycmd.c b/src/querycmd.c index a39ee25..8d3ee7c 100644 --- a/src/querycmd.c ++

[PATCH] querycmd: only write() once

2013-08-30 Thread Shawn Landden
This way a program reading from dpkg-query through a pipe will get the output in a single read() --- src/querycmd.c | 29 - 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/src/querycmd.c b/src/querycmd.c index a39ee25..7d0be09 100644 --- a/src/querycmd.c