<?xml version="1.0" encoding="windows-1252"?>
<node id="1014437" title="Re^2: How to pass AnyEvent socket handle to pre-forked child process?" created="2013-01-21 07:51:14" updated="2013-01-21 07:51:14">
<type id="11">
note</type>
<author id="5348">
Corion</author>
<data>
<field name="doctext">
&lt;p&gt;Actually, you &lt;i&gt;can&lt;/i&gt; 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. &lt;tt&gt;:-)&lt;/tt&gt;&lt;/p&gt;
&lt;p&gt;[mod://PPerl] has code for passing around filehandles in [http://cpansearch.perl.org/src/MSERGEANT/PPerl-0.25/pass_fd.c|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.&lt;/p&gt;&lt;p&gt;This approach still leaves systems not so close to Unix in the rain of course, so your better, and common, approach of using [doc://accept] still stands.&lt;/p&gt;</field>
<field name="root_node">
1014374</field>
<field name="parent_node">
1014431</field>
</data>
</node>
