• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Attaching to newly-exec'd process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Attaching to newly-exec'd process (From: Steve Checkoway <email@hidden>)

  • Prev by Date: Re: general documentation question
  • Next by Date: Protocol declaration not found
  • Previous by thread: Re: Attaching to newly-exec'd process
  • Next by thread: AudioQueue.h
  • Index(es):
    • Date
    • Thread