develooper Front page | perl.perl5.porters | Postings from March 2014

Re: Inconsistent cpan/Win32API-File/t/file.t failure (was Re:Smoke[smoke-me/nicholas/openn] v5.19.9-200-g22d0f40 FAIL(F) MSWin32 Win2000SP4(x86/1 cpu) {smoke-me})

Thread Previous | Thread Next
From:
Aristotle Pagaltzis
Date:
March 19, 2014 14:43
Subject:
Re: Inconsistent cpan/Win32API-File/t/file.t failure (was Re:Smoke[smoke-me/nicholas/openn] v5.19.9-200-g22d0f40 FAIL(F) MSWin32 Win2000SP4(x86/1 cpu) {smoke-me})
Message ID:
20140319144324.GA95691@plasmasturm.org
* bulk88 <bulk88@hotmail.com> [2014-03-19 13:10]:
> Win32 files are Reference Counted.®¹ When the last kernel handle is
> closed, then the delete function is called in the FS driver.

But filenames don’t count as references. Under Unix they do, along with
any open handles, so deleting a filename merely decreases the file’s ref
count, which can always be done immediately, and it is. (There is no way
to delete a *file* in Unix userspace, only the kernel can do that, which
it only does when a file’s ref count goes to zero.)

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About