Re: Attaching to newly-exec'd process
Re: Attaching to newly-exec'd process
- Subject: Re: Attaching to newly-exec'd process
- From: Scott Ribe <email@hidden>
- Date: Sat, 19 Jan 2008 14:24:22 -0700
- Thread-topic: Attaching to newly-exec'd process
> Are you sure you can dup a socket on the child side of a vfork? The
> Apple man page doesn't mention anything, but I've always thought (and
> the linux man page I'm looking at now) claims that doing anything other
> than _exit(2)ing or calling one of the exec family of functions (or,
> oddly enough modifying data of type pid_t) from the client side of
> vfork() results in undefined behavior.
Got it from Apple's sample code for authorization services & helper tools.
It does work, no EINVAL error returned to parent process. It is also
probably unnecessary; I was restructuring some code while on the road. Now
that I'm back home and can pull Stevens (and so on) off the shelf I think I
can figure out a better way...
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden