author | Jeff King <peff@peff.net> | |
Wed, 28 Jan 2009 07:36:39 +0000 (02:36 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 28 Jan 2009 22:09:35 +0000 (14:09 -0800) | ||
commit | 1d64f21d9949ac1dd59fa722160e46181d92854d | |
tree | ea38efd5e19ff0c219e1f8f17394c873925fe852 | tree | snapshot |
parent | 45c0961c87884a04517b65c0acc6aedeeae2d0c8 | commit | diff |
run_command(): help callers distinguish errors
run_command() returns a single integer specifying either an
error code or the exit status of the spawned program. The
only way to tell the difference is that the error codes are
outside of the allowed range of exit status values.
Rather than make each caller implement the test against a
magic limit, let's provide a macro.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
run_command() returns a single integer specifying either an
error code or the exit status of the spawned program. The
only way to tell the difference is that the error codes are
outside of the allowed range of exit status values.
Rather than make each caller implement the test against a
magic limit, let's provide a macro.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
run-command.h | diff | blob | history |