Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: How to pass AnyEvent socket handle to pre-forked child process?

by Corion (Pope)
on Jan 21, 2013 at 12:51 UTC ( #1014437=note: print w/ replies, xml ) Need Help??


in reply to Re: How to pass AnyEvent socket handle to pre-forked child process?
in thread How to pass AnyEvent socket handle to pre-forked child process?

Actually, you can pass filehandles between processes, it's just not something that solves many problems, and there usually are better ways to accomplish the same, as you outlined already. :-)

PPerl has code for passing around filehandles in pass_fd.c, and I wrote a replacement for that for Win32, but can't find it on RT. Maybe I forgot to open a bug for it.

This approach still leaves systems not so close to Unix in the rain of course, so your better, and common, approach of using accept still stands.


Comment on Re^2: How to pass AnyEvent socket handle to pre-forked child process?
Replies are listed 'Best First'.
Re^3: How to pass AnyEvent socket handle to pre-forked child process?
by zwon (Monsignor) on Jan 23, 2013 at 15:04 UTC
    That's interesting, probably it's time to reread APUE, thank you

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014437]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (17)
As of 2015-07-30 12:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls