• 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: Can you pass a file descriptor to another process?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can you pass a file descriptor to another process?


  • Subject: Re: Can you pass a file descriptor to another process?
  • From: James Bucanek <email@hidden>
  • Date: Wed, 20 Aug 2014 16:00:18 -0700

Jim,
Mark,
Ken,
Chris,

Thanks everyone for the quick answer. XPC is, unfortunately, 10.7 and I'm still trying to support 10.6.

I was really hoping there was some way of serializing a file descriptor (i.e. some feature of fcntl()) into something that was transportable, as I already have a DO connection with the other process and really wan't interested in creating a second socket or port just to exchange an fd.

I guess I'll just work around the problem until I can drop support for 10.6. Maybe once 10.10 is out...

Which brings me to an aside: I'm still on the lookout for an OS X specific sample project that uses the C API to create a simple XPC connection between two processes and exchange messages. All I ever find in Apple's documentation is how to create a bundled XPC service (which I can't use) or how to use the high-level NSXPCConnection classes. If I have some free time (HA HA HA) I'll guess just have to play around with xpc_connection_create() and xpc_main() and see if I can get something to work.

Thanks all,

James
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Re: Can you pass a file descriptor to another process? (From: Ken Hornstein <email@hidden>)

  • Prev by Date: Re: Can you pass a file descriptor to another process?
  • Next by Date: Re: Can you pass a file descriptor to another process?
  • Previous by thread: Re: Can you pass a file descriptor to another process?
  • Next by thread: Re: Can you pass a file descriptor to another process?
  • Index(es):
    • Date
    • Thread