Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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?
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 about the Monastery: (15)
As of 2014-07-31 14:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (249 votes), past polls