Thread (7 messages) flat view 7 messages, 4 authors, 2021-06-10

RE: [PATCH] builtins + test helpers: use return instead of exit() in cmd_*

From: Felipe Contreras <hidden>
Date: 2021-06-07 17:03:33

Ævar Arnfjörð Bjarmason wrote:
Change various cmd_* functions to use "return" instead of exit() to
indicate an exit code. On Solaris with SunCC the compiler legitimately
complains about these, since we'll e.g. skip the cleanup (e.g. closing
fd's, erroring if we can't) in git.c's run_builtin() when we exit()
directly like this.

Signed-off-by: Ævar Arnfjörð Bjarmason <redacted>
Makes sense to me and it's obviously correct.

Reviewed-by: Felipe Contreras <redacted>

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