Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re:Another simple fork() question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:Another simple fork() question



You create a pipe before the fork and you only dup in the child process, so it's pretty normal that cannot send anything from the parent to the child. Either dup before creating the child, or dup in both branches and close the descriptors you don't need.

Michhle
<http://micmacfr.homeunix.org/>
_______________________________________________
unix-porting mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/unix-porting
Do not post admin requests to the list. They will be ignored.





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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.