Thread (6 messages) flat view 6 messages, 4 authors, 2016-06-15

Re: Freeing struct lock_file?

From: Junio C Hamano <hidden>
Date: 2016-06-15 23:04:21

David Turner [off-list ref] writes:
Why is it impossible to free struct lock_files?  I understand that they
become part of a linked list, and that there's an atexit handler that
goes over that list.  But couldn't we just remove them from the linked
list and then free them? 
I suspect that the code is worried about getting a signal, while it
is manipulating the linked list, and then cause the atexit handler
to walk a list that is in a broken state.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help