|Think about Loose Coupling|
Re^3: Weird STDERR/SIGDIE/Encodings issueby McA (Priest)
|on Mar 28, 2013 at 23:51 UTC||Need Help??|
Concerning the recursion I speculated about the following: You're right that the sig handler is disabled, but the standard die functionality is done anyway. So the error string is printed via STDERR on which you enabled the encoding IO layer with binmode. The following code reproduces the error:
As soon as you change the line
you don't get the hanging behaviour.
UPDATE: If you keep the first version but you insert the follwoing line in the if-clause of your die-handler
you also don't get the hanging behaviour even when printing at STDERR.