<?xml version="1.0" encoding="windows-1252"?>
<node id="929098" title="Re: Win32, fork and XS globals (cygwin)" created="2011-10-02 01:00:37" updated="2011-10-02 01:00:37">
<type id="11">
note</type>
<author id="22609">
tye</author>
<data>
<field name="doctext">
&lt;blockquote&gt;&lt;i&gt;
What options are there that will bring Windows into line with Linux ?
&lt;/i&gt;&lt;/blockquote&gt;&lt;p&gt;
Use cygwin Perl.
&lt;/p&gt;&lt;p&gt;
Win32 Perl's [doc://fork] creates a thread and then makes copies of the Perl interpreter.  Copying the Perl interpreter does not make copies of non-Perl global data such as C globals or things loaded from *.dll files.
&lt;/p&gt;&lt;p&gt;
If you want to make a copy, then you need to use something tied to the Perl interpreter instance.  You could use a Perl package variable (global), for instance.
&lt;/p&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-22609"&gt;&lt;p align="right"&gt;
- [tye]&lt;tt&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/tt&gt;
&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
929097</field>
<field name="parent_node">
929097</field>
</data>
</node>
