Remove the line:
The children messing with (closing, in this case) the file handle is likely the cause of your problem. You might still have a problem with the children sharing a single copy of $Sql, but i've never used fork in perl before, so I couldn't say.close $fh or die "Can't close $fh";
...roboticus
Update: I forgot to tell why the line ought to be cut.
In reply to Re: HPUX corruption of file handle after fork
by roboticus
in thread HPUX corruption of file handle after fork
by Abe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |