C<new SelectSaver $fh> doesn't always restore
authorSpider Boardman <spider@orb.nashua.nh.us>
Sat, 29 Mar 1997 19:06:37 +0000 (14:06 -0500)
committerChip Salzenberg <chip@atlantic.net>
Tue, 25 Mar 1997 19:04:34 +0000 (07:04 +1200)
commit37ec1aec856d9f941c54a4c316fd341b54f94bdf
tree98080885ef51755d5fd40331bbea2d3c6e62e5f5
parent5dad0344e72a654bb2ed9a76760452bdb56c6e6d
C<new SelectSaver $fh> doesn't always restore

This is a bug report for perl from spider@Orb.Nashua.NH.US,

If you're lucky enough to get a signal (such as ALRM) which is handled
with die() while in a SelectSaver->new($fh) call, your previous output
filehandle is not restored.  It violates the basic rule of 'save and
restore' handling, in that it modifies the state it wants to restore
I<before> it has ensured that the prior state will be restored.  Patch:

p5p-msgid: 199703291906.OAA07232@Orb.Nashua.NH.US
lib/SelectSaver.pm