Re: Does sendmsg only work on AF_UNIX sockets?
Re: Does sendmsg only work on AF_UNIX sockets?
- Subject: Re: Does sendmsg only work on AF_UNIX sockets?
- From: Josh Graessley <email@hidden>
- Date: Thu, 13 Nov 2008 13:05:13 -0800
On Nov 13, 2008, at 1:05 AM, Dave Camp wrote:
On Nov 12, 2008, at 4:12 PM, james woodyatt wrote:
On Nov 12, 2008, at 15:48, Dave Camp wrote:
Just to confirm, that was the source of my question... I've got
two unrelated processes (not a parent/child relationship), neither
can write to a common part of the file system and I want to pass a
file descriptor from one to the other. My research was showing
there wasn't a way to do it, but I thought I'd ask anyway.
How is it possible that one or both of your processes do not have
rwx permissions on the /tmp directory? Did you do something with
chroot(8) that you're not telling us? If so, then Don't Do That.
Make sure the processes a have a common path to an AF_UNIX socket
where you can pass file descriptors between them.
It's on a iPhone, that's how.
I didn't mention it because it wasn't relevant to the general
question of "is AF_UNIX the only way to pass a file descriptor"... I
apologize if that made your brain hurt.:-)
This answer inevitably leads to more questions.
What precisely are you trying to accomplish. For the most part, only a
single iPhone app may run at a time. Are you trying to pass file
descriptors between two different iPhone apps? Are you trying to run
another process from your iPhone app? More information may help us
determine if there's a way for you to solve your problem that will
work on the iPhone.
Thanks,
-josh
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden