Signed-off-by: Christian Couder <chriscool@xxxxxxxxxxxxx> --- run-command.c | 2 +- run-command.h | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/run-command.c b/run-command.c index 8c7115a..29d2bda 100644 --- a/run-command.c +++ b/run-command.c @@ -85,7 +85,7 @@ static inline void close_pair(int fd[2]) } #ifndef GIT_WINDOWS_NATIVE -static inline void dup_devnull(int to) +void dup_devnull(int to) { int fd = open("/dev/null", O_RDWR); if (fd < 0) diff --git a/run-command.h b/run-command.h index de1727e..3aa244a 100644 --- a/run-command.h +++ b/run-command.h @@ -200,4 +200,10 @@ int run_processes_parallel(int n, task_finished_fn, void *pp_cb); +/** + * Misc helper functions + */ + +void dup_devnull(int to); + #endif -- 2.8.1.300.g5fed0c0 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html