]> git.ipfire.org Git - thirdparty/ccache.git/commit
Do not rely on pids being unique
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 8 Nov 2014 15:53:34 +0000 (16:53 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 13 Nov 2014 18:50:13 +0000 (19:50 +0100)
commita07f46a3b0f7e452d50690b831bb4c99fbc6650f
tree65062f5d3ed14d9f627764a8537c8e0d9974b1e8
parent1df910958f8e75126d273f06285a52493ebb331f
Do not rely on pids being unique

Based on a patch by Mike Frysinger <vapier@gentoo.org>:

"Linux supports creating pid namespaces cheaply and running processes
inside of them. When you try to share a single cache among multiple such
runs, the fact that the code relies on pid numbers as globally unique
values quickly fails. Instead, switch to standard mkstemp to generate temp
files for us."
ccache.c
ccache.h
manifest.c
stats.c
util.c