summaryrefslogtreecommitdiff
path: root/credential.c
diff options
context:
space:
mode:
authorLibravatar Etienne Buira <etienne.buira@gmail.com>2014-10-18 14:31:15 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-10-19 15:38:30 -0700
commit0f4b6db3baeff8de53769b38f439408abd5a42f7 (patch)
treed39a29a7792df19e576e67c8cee9f68d4f54e2ea /credential.c
parentpack-objects: set number of threads before checking and warning (diff)
downloadtgif-0f4b6db3baeff8de53769b38f439408abd5a42f7.tar.xz
Handle atexit list internaly for unthreaded builds
Wrap atexit()s calls on unthreaded builds to handle callback list internally. This is needed because on unthreaded builds, asyncs inherits parent's atexit() list, that gets run as soon as the async exit()s (and again at the end of async's parent process). That led to remove temporary files too early. Also remove a by-atexit-callback guard against this kind of issue in clone.c, as this patch makes it redundant. Fixes test 5537 (temporary shallow file vanished before unpack-objects could open it) BTW remove an unused variable in shallow.c. Helped-by: Duy Nguyen <pclouds@gmail.com> Helped-by: Andreas Schwab <schwab@linux-m68k.org> Helped-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Etienne Buira <etienne.buira@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'credential.c')
0 files changed, 0 insertions, 0 deletions