in reply to Yet another fork() w/ win32 (activeperl) question
It seems to work brilliantly.#!c:\perl\bin\perl use Net::AIM; use strict; use warnings; my $counter = 0; my $done; while (1==1) { if ($counter <= 3) { my $pid = fork(); if ($pid) { print "forking process $counter.\n"; $counter++; } else { ############meat########################### # pretty much just # straight copy/pasted from main script ###########/meat########################### exit $counter; } } else { $done = wait(); $counter--; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Yet another fork() w/ win32 (activeperl) question
by tcf22 (Priest) on May 24, 2003 at 22:33 UTC |