Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fork, pipes, and Tiger



Martin Costabel wrote:
Terry Lambert wrote:
[]
Either fix your code, or use socketpair() instead of pipe().
[]
I'll try to read about socketpair(), but I'd prefer not to have to rewrite the code too much.

I have replaced the two lines

  pipe (tochild);
  pipe (fromchild);

by

  socketpair (AF_UNIX, SOCK_STREAM, PF_UNSPEC, tochild);
  socketpair (AF_UNIX, SOCK_STREAM, PF_UNSPEC, fromchild);

(plus an additional "#include <sys/socket.h>") and this seems to work. The Fink texmacs package is now patched accordingly. Texmacs has a maple plugin that uses the same construct. Last I heard, this plugin doesn't work on Tiger either, but I can't test it, because I don't have maple.

I am still curious what exactly is causing this strange behavior on Tiger. If I get a little closer, I'll file a bug.

--
Martin




_______________________________________________ Do not post admin requests to the list. They will be ignored. Unix-porting mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/unix-porting/email@hidden

This email sent to email@hidden
References: 
 >fork, pipes, and Tiger (From: Martin Costabel <email@hidden>)
 >Re: fork, pipes, and Tiger (From: Terry Lambert <email@hidden>)
 >Re: fork, pipes, and Tiger (From: Martin Costabel <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.