Half-closing bidirectional pipes
Half-closing bidirectional pipes
- Subject: Half-closing bidirectional pipes
- From: Tomasz Kukielka <email@hidden>
- Date: Tue, 29 May 2007 12:45:52 -0700
- Thread-topic: Half-closing bidirectional pipes
Hello,
It is not very clear to me but it looks like pipes in Mac OS 10.4 are
bidirectional. If yes, how can I half-close such pipe, sending EOF when I
finish writing but keep it open for reading?
What am I trying to do? popen(cmd, "r+") of course. So I want to send some
data to standard input of an executed tool, close the writing part and read
the result. I cannot just close everything when I finish writing because
then I will not get the result in standard output. And if I don't send the
EOF when writing, some tools will not start processing it (e.g. grep).
TIA,
Tom
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden