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: "Justin C. Walker" <email@hidden>
- Date: Thu, 13 Nov 2008 12:55:35 -0800
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 :-}
Justin
--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's income
-----------
--
They said it couldn't be done, but sometimes,
it doesn't work out that way.
- Casey Stengel
--
_______________________________________________
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