in reply to multithreaded debugging

The line my $pid= fork() just blocks the script.

What does it mean? does your program eat up all CPU time? or none at all?

Did you insert a print STDERR "before the fork\n"; and print STDERR "after the fork\n" directly before and after that line?

And which operating system and perl distribution do you use?

Replies are listed 'Best First'.
Re^2: multithreaded debugging
by Razvanica (Novice) on Aug 29, 2007 at 09:58 UTC
    Hello moritz
    My program consumes 0 CPU time and it just prints before the fork if I use your example. I am using ActivePerl 5.8.8 on an WindowsXP OS.