site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com So I was very sad to learn that popen with r+ doesn't work on jaguar and panther, Really? I tried looking at popen's source and doing the pipes and forks like it does it but fdopen keeps returning EINVAL (22) not liking the "r+" mode I send it. Here is my ldpopen method: Ian _______________________________________________ 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... On Tue, 20 Jun 2006, matt jaffa wrote: You can't open pdes[0] for writing, nor pdes[1] for reading. pipe() gives you a single, unidirectional pipe. If you need both input and output from your subprocess you'll need either two pipes or a bidirectional socket (see socketpair(2)). This email sent to site_archiver@lists.apple.com
participants (1)
-
Ian Lister