summaryrefslogtreecommitdiff
path: root/run-command.h
diff options
context:
space:
mode:
authorLars Schneider <larsxschneider@gmail.com>2016-10-16 23:20:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-10-17 18:36:49 (GMT)
commitb992fe104ecde5a362a31d610de96518f398d5c0 (patch)
tree7b63544375c45467f481b0e9898146c3b5a6c147 /run-command.h
parented54970324ec0be0f11e1c2af100ea8b1c01a05a (diff)
downloadgit-b992fe104ecde5a362a31d610de96518f398d5c0.zip
git-b992fe104ecde5a362a31d610de96518f398d5c0.tar.gz
git-b992fe104ecde5a362a31d610de96518f398d5c0.tar.bz2
run-command: move check_pipe() from write_or_die to run_command
Move check_pipe() to run_command and make it public. This is necessary to call the function from pkt-line in a subsequent patch. While at it, make async_exit() static to run_command.c as it is no longer used from outside. Signed-off-by: Lars Schneider <larsxschneider@gmail.com> Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'run-command.h')
-rw-r--r--run-command.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/run-command.h b/run-command.h
index 5066649..cf29a31 100644
--- a/run-command.h
+++ b/run-command.h
@@ -139,7 +139,7 @@ struct async {
int start_async(struct async *async);
int finish_async(struct async *async);
int in_async(void);
-void NORETURN async_exit(int code);
+void check_pipe(int err);
/**
* This callback should initialize the child process and preload the