Thread (1 message) 1 message, 1 author, 2016-06-16

Re: [PATCH] Refactor recv_sideband()

From: Junio C Hamano <hidden>
Date: 2016-06-16 06:55:52

Lukas Fleischer [off-list ref] writes:
One possible solution is using strbuf and constructing the message as we
did before. However, that still relies on fprintf() only calling write()
once per format specifier. While that is probably true for all existing
implementations, I don't think it is guaranteed by some standard.
Shouldn't we always use the stderr stream when printing error messages
instead, especially when we care about thread safety?
Or you can always write(2) to fd=2 and that is safe, too.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help