But the OP has duplicated the file handle in both cases.
I have tried with 5.8.8 (redhat build) and 5.10.0 (default build) on Linux. Neither waits on the sub-process - neither hangs. But the OP says 5.10 hangs with either form. If it is hanging waiting for the sub-process, then something very different is happening.
So, question for the OP: who's build and on what platform are you seeing this?
In reply to Re^4: Variable triggers global destruction hang
by ig
in thread Variable triggers global destruction hang
by saintmike
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |