lix/src/libstore
Eelco Dolstra b6c989b801 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
2012-08-05 21:41:44 -04:00
..
build.cc Drop the block count in the garbage collector 2012-08-01 22:34:46 -04:00
derivations.cc * Ouch. A store upgrade could cause a substituter to be triggered, 2011-09-12 09:07:43 +00:00
derivations.hh Use "#pragma once" to prevent repeated header file inclusion 2012-07-18 14:59:03 -04:00
gc.cc Count bytes freed deleting unused links 2012-08-01 22:43:03 -04:00
globals.cc * Move initialisation of variables like nixConfDir from libmain to 2011-11-22 17:28:41 +00:00
globals.hh Use "#pragma once" to prevent repeated header file inclusion 2012-07-18 14:59:03 -04:00
local-store.cc Automatically optimise the Nix store when a new path is added 2012-07-23 17:14:15 -04:00
local-store.hh Count bytes freed deleting unused links 2012-08-01 22:43:03 -04:00
Makefile.am Compress build logs on the fly using bzip2 2012-05-30 10:12:29 -04:00
misc.cc * Add an option ‘build-use-substitutes’, which can be set to ‘false’ 2012-04-30 19:15:34 -04:00
misc.hh Use "#pragma once" to prevent repeated header file inclusion 2012-07-18 14:59:03 -04:00
optimise-store.cc Fix race condition when two processes create a hard link to a file in .links 2012-08-05 21:41:44 -04:00
pathlocks.cc Set the close-on-exec flag on file descriptors 2012-03-05 20:29:00 +01:00
pathlocks.hh Use "#pragma once" to prevent repeated header file inclusion 2012-07-18 14:59:03 -04:00
references.cc Use data() instead of c_str() where appropriate 2012-02-09 18:27:45 +01:00
references.hh Use "#pragma once" to prevent repeated header file inclusion 2012-07-18 14:59:03 -04:00
remote-store.cc Drop the block count in the garbage collector 2012-08-01 22:34:46 -04:00
remote-store.hh Use "#pragma once" to prevent repeated header file inclusion 2012-07-18 14:59:03 -04:00
schema.sql * Store the size of a store path in the database (to be precise, the 2010-11-16 17:11:46 +00:00
store-api.cc nix-store --gc: Make ‘--max-freed 0’ do the right thing 2012-08-01 19:14:58 -04:00
store-api.hh Drop the block count in the garbage collector 2012-08-01 22:34:46 -04:00
worker-protocol.hh Use "#pragma once" to prevent repeated header file inclusion 2012-07-18 14:59:03 -04:00