git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* run_hook: why special check for uncaught signal?
@ 2009-06-30 20:31 Johannes Sixt
  2009-07-01  9:57 ` Miklos Vajna
  0 siblings, 1 reply; 2+ messages in thread
From: Johannes Sixt @ 2009-06-30 20:31 UTC (permalink / raw)
  To: git, Miklos Vajna

Function run_hook (in run-command.c) has this check:

	ret = finish_command(&hook);
	if (ret == -ERR_RUN_COMMAND_WAITPID_SIGNAL)
		warning("%s exited due to uncaught signal", argv[0]);
	return ret;

The lines were moved to this location by ae98a008 (Move run_hook() from 
builtin-commit.c into run-command.c (libgit), 2009-01-16). Before this 
commit, the check existed in builtin-gc.c. It was introduced by bde30540 
(git-gc --auto: add pre-auto-gc hook, 2008-04-09).

Why is this check necessary?

I'm asking because I'm working on a modification that would remove 
ERR_RUN_COMMAND_WAITPID_SIGNAL.

-- Hannes

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-01  9:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-30 20:31 run_hook: why special check for uncaught signal? Johannes Sixt
2009-07-01  9:57 ` Miklos Vajna

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).