Half-closing bidirectional pipes
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Thread-index: AceiKfa4NVuS7g4dEdysTgAX8jPHcQ== Thread-topic: Half-closing bidirectional pipes User-agent: Microsoft-Entourage/11.3.3.061214 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Tomasz Kukielka