Re: weird problem ...
Re: weird problem ...
- Subject: Re: weird problem ...
- From: Shaun Wexler <email@hidden>
- Date: Thu, 8 May 2003 20:32:03 -0700
On Thursday, May 8, 2003, at 07:18 PM, Lloyd Dupont wrote:
mach ports cannot be done except after an exec, not fork.
ha ? uh ...
how could I do then ?
I plan to make it a StartupItem, so I need to make it a daemon, I mean
at last I should return immediately (and how to do that, if not by
using fork() ?)
and then I want to be able to do advanced communication, if I could
avoid having to write my own version of DO on top of socket that would
be cool.. any idea ?
call:
daemon(0, 0);
This will detach the program from the Terminal that's running it, and
make the current process a daemon. Check the man page: 'man daemon'
--
Shaun Wexler
MacFOH
http://www.macfoh.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.