From: Fifer, Eric Date: Fri, 18 Aug 2000 17:30:05 +0000 (+0100) Subject: cygwin port X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ceb977da9f96fdae76522541d78f3ce7b09a90c4;p=p5sagit%2Fp5-mst-13.2.git cygwin port Message-ID: <779F20BCCE5AD31186A50008C75D9979171784@silldn_mail1.sanwaint.com> p4raw-id: //depot/perl@6700 --- diff --git a/lib/File/Temp.pm b/lib/File/Temp.pm index bf24ed3..6fa58e3 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);