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



Le dimanche, 23 fiv 2003, ` 18:56 Europe/Paris, email@hidden a icrit :

Hi,

I tested some more, and...

http://micmacfr.homeunix.org/progsysdet/progsys05.shtml

even if I close the read-ends of the pipe that I will not read out, before I do anything after fork(), it doesn't work. It also doesn't work when I forget about using stdin and stdout in the child completely, but do a direct read() in the child to read from the parent instead, like you are doing in your example. That still doesn't work....
If your program is not too confidential and too big, provide the list with the whole program, as the way you arrange c++ files and headers files can have a great influence on the way the pipes and the stdin, stdout react.

I cannot help you in the air, if you prefer send me the whole program, I'll try to see if I can help you and provide a true email address so that I can send you my replies.

Though it would be better to find someone more skilled as I'm in Unix and C++.

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.



References: 
 >Re: Another simple fork() question (From: email@hidden)



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.