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:
c5a29f4
)
Typo fix from Boris Zentner.
author
Jarkko Hietaniemi
<jhi@iki.fi>
Mon, 11 Aug 2003 08:33:13 +0000
(08:33 +0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Mon, 11 Aug 2003 08:33:13 +0000
(08:33 +0000)
p4raw-id: //depot/perl@20611
pod/perlfaq5.pod
patch
|
blob
|
history
diff --git
a/pod/perlfaq5.pod
b/pod/perlfaq5.pod
index
9e30b54
..
cad896d
100644
(file)
--- a/
pod/perlfaq5.pod
+++ b/
pod/perlfaq5.pod
@@
-549,7
+549,7
@@
which must be done in one. That's why computer hardware provides an
atomic test-and-set instruction. In theory, this "ought" to work:
sysopen(FH, "file.lock", O_WRONLY|O_EXCL|O_CREAT)
- or die "can't open file.lock: $!"
:
+ or die "can't open file.lock: $!"
;
except that lamentably, file creation (and deletion) is not atomic
over NFS, so this won't work (at least, not every time) over the net.