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: Dave Camp <email@hidden>
- Date: Thu, 13 Nov 2008 15:34:37 -0800
On Nov 13, 2008, at 12:55 PM, Justin C. Walker wrote:
On Nov 13, 2008, at 01:05 , 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.:-)
It was definitely relevant. Since the general topic here is "Mac
networking", there are a lot of built-in assumptions, "/tmp" being
one of them. I'll guess that most of us haven't taken the time to
learn iPhone internals. We're happy to learn more, though :-}
My bad, I should know better. After having "don't talk about iPhone"
drilled into my head for months, I'm finding the habit hard to break.
Thanks!
Dave
_______________________________________________
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