about summary refs log tree commit diff
path: root/src/libexpr/primops.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-08-06T01·41-0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-08-06T01·41-0400
commitb6c989b80198badf5f694340c07abc282365aaec (patch)
treee5fe60a3a274959394d2c1fdb99a597dec22973a /src/libexpr/primops.cc
parent108e14bb189fd0fb291d3494f9f3915070a7052e (diff)
Fix race condition when two processes create a hard link to a file in .links
This is a problem because one process may set the immutable bit before
the second process has created its link.

Addressed random Hydra failures such as:

error: cannot rename `/nix/store/.tmp-link-17397-1804289383' to
`/nix/store/rsvzm574rlfip3830ac7kmaa028bzl6h-nixos-0.1pre-git/upstart-interface-version':
Operation not permitted
Diffstat (limited to 'src/libexpr/primops.cc')
0 files changed, 0 insertions, 0 deletions