develooper Front page | perl.perl5.porters | Postings from March 2006

Re: Making IO::Socket pass test on Win32

Thread Previous | Thread Next
Andy Dougherty
March 31, 2006 09:30
Re: Making IO::Socket pass test on Win32
Message ID:
On Fri, 31 Mar 2006, demerphq wrote:

> On 3/31/06, Andrew Dougherty <> wrote:

> > Config{d_fork} is the correct test to use to see if you have fork().  If
> > a platform configuration system doesn't set d_fork correctly, I'd say the
> > bug is in the configuration system.
> Hmm, but Windows doesnt have a fork, it fakes it, and it doesnt appear
> to have this var set.

When Windows fakes fork(), then I think it *should* have this variable 
set.  That is, I think the bug is in whatever writes for 
Windows, not in the code checking for $Config{d_fork}.

>                       So maybe Config{d_fork} is actually just telling
> us there is a native level fork available?

I wouldn't put too much stock in what its "actually" telling us, because 
it's just telling us whatever we told it to tell us :-).

It seems to me that from the perl program's perspective, fork() should 
work if $Config{d_fork} is set.  No additional gyrations should be needed.

    Andy Dougherty

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About