This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help: looking for equivalent syscall to shutdown() but for unix pipes


On Thu, Jan 17, 2019 at 4:13 AM Alexandre Bique
<bique.alexandre@gmail.com> wrote:
> I'm not very enthusiast with the idea of sending an EOF message,
> because the original producer comes from an other process, so there
> could be all sorts of corrupted data over the pipe

How is the pipe useful at all if there could be all sorts of corrupted data?
Why don't you have stopConsumer close the write end of the pipe rather
than the read end?

regards, Dmitry


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]