From ceb977da9f96fdae76522541d78f3ce7b09a90c4 Mon Sep 17 00:00:00 2001 From: "Fifer, Eric" Date: Fri, 18 Aug 2000 18:30:05 +0100 Subject: cygwin port Message-ID: <779F20BCCE5AD31186A50008C75D9979171784@silldn_mail1.sanwaint.com> p4raw-id: //depot/perl@6700 --- lib/File/Temp.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/File/Temp.pm b/lib/File/Temp.pm index bf24ed3671..6fa58e3e19 100644 --- a/lib/File/Temp.pm +++ b/lib/File/Temp.pm @@ -1517,7 +1517,9 @@ sub unlink0 { print "Link count = $fh[3] \n" if $DEBUG; # Make sure that the link count is zero - return ( $fh[3] == 0 ? 1 : 0); + # - Cygwin provides deferred unlinking, however, + # on Win9x the link count remains 1 + return ( $fh[3] == 0 or $^O eq 'cygwin' ? 1 : 0); } else { _deferred_unlink($fh, $path, 0); -- cgit v1.2.1