in reply to parallel forkmanager and unexpected duplicates.
I'm completely guessing, but if there's stuff in the STDOUT buffer, and then the child processes flush STDOUT on exit, that could explain the dupes...$|=1;
If that's the case, you should also make sure you select BADADDR and GOODADDR before the fork and do the same for them; I'm not sure if the unlock would do the flush for you.
(Edit: The seek would do the flush, but the print happens AFTER the seek.)
my $oldfh=select(BADADDR); $|=1; select(GOODADDR); $|=1; select($oldfh); # reselect STDOUT
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: parallel forkmanager and unexpected duplicates.
by Abigail-II (Bishop) on Jul 12, 2002 at 16:24 UTC | |
|
Re: Re: parallel forkmanager and unexpected duplicates.
by neilwatson (Priest) on Jul 12, 2002 at 16:25 UTC |