How to send EOF to the popen(3) pipe?
Yuri
yuri at rawbw.com
Mon Jan 18 15:50:23 UTC 2016
On 01/18/2016 01:29, Malcolm Matalka wrote:
> The manpage claims that pclose waits for the process to finish and
> returns its exit code, is this not true?
This is true, but EOF is different. In the case of the network
connection, one can send EOF (call shutdown(2)), and then keep reading
from the socket. With popen(3) this isn't possible. pclose(3) just
closes and finishes the pipe.
Yuri
More information about the freebsd-hackers
mailing list