| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I use a modified sample from Apple. <http://developer.apple.com/qa/qa2001/qa1133.html>
Yikes. Bad sample code. We shouldn't be recommending daemon()...
childPID = vfork();
You want to use fork() here instead. Any library calls besides _exit or one of the exec*() family of functions result in undefined behavior after vfork().
--
matt.
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.
| References: | |
| >Re: open fails in daemon (From: Matt Watson <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.