projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af638b8
)
AW: IO::Dir destructor
author
Dintelmann, Peter
<Peter.Dintelmann@dresdner-bank.com>
Mon, 2 Jun 2008 14:48:35 +0000
(16:48 +0200)
committer
Steve Peters
<steve@fisharerojo.org>
Mon, 2 Jun 2008 13:54:24 +0000
(13:54 +0000)
From: "Dintelmann, Peter" <Peter.Dintelmann@dresdner-bank.com>
Message-ID: <
3852726AFA94DE4F87E616F13F416A5F0216D9BE
@naimucu1.ffz00k.rootdom.net>
p4raw-id: //depot/perl@33989
lib/DirHandle.pm
patch
|
blob
|
history
diff --git
a/lib/DirHandle.pm
b/lib/DirHandle.pm
index
65250c3
..
e8274a8
100644
(file)
--- a/
lib/DirHandle.pm
+++ b/
lib/DirHandle.pm
@@
-60,6
+60,7
@@
sub DESTROY {
my ($dh) = @_;
# Don't warn about already being closed as it may have been closed
# correctly, or maybe never opened at all.
+ local($., $@, $!, $^E, $?);
no warnings 'io';
closedir($dh);
}