fix potential deadlock in create_one_file

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

fix potential deadlock in create_one_file

From: Alex Riesen <hidden>
Date: 2016-06-15 22:42:15

It can happen if the temporary file already exists (i.e. after a panic
and reboot).

Signed-off-by: Alex Riesen <redacted>

Re: fix potential deadlock in create_one_file

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:16

Alex Riesen [off-list ref] writes:
It can happen if the temporary file already exists (i.e. after a panic
and reboot).
We use pid here and using somebody else's pid feels wrong but
that is only for collision avoidance, mktemp(3) is no better,
and neither tmpfile(3) nor mkstemp(3) are usable for directories
anyway, so your patch as is would be the best solution.

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help