Date: Fri, 15 Jan 2016 19:36:41 -0800 From: Yuri <yuri@rawbw.com> To: Freebsd hackers list <freebsd-hackers@FreeBSD.org> Subject: How to send EOF to the popen(3) pipe? Message-ID: <5699BAC9.3060407@rawbw.com>
next in thread | raw e-mail | index | archive | help
Is there a way to send the EOF to popen(3) pipe? Imagine the situation when the child process works in a stream fashion, processes objects one by one, and stops on EOF from stdin. One has to be able to send EOF to get to the end of the last processed object. Otherwise reading from the descriptor will generally block. Linux man page says that popen is unidirectional on Linux. But FreeBSD supports bi-directional popen. Yuri
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5699BAC9.3060407>