On Sat, 28 Oct 2006, Johannes Schindelin wrote: > > when you setup a lockfile, and then fork(), you could easily end up with > atexit() kicking in to remove the lockfile, before the main process has a > chance to commit. (Yes, I need to hold the lock long before the fork()). The easiest way to handle this would be for the lockfile logic to just save the pid associated with each lockfile... And for the atexit function to just ignore it if the pid doesn't match. Linus - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html