X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=run-command.h;h=967ba8cc09786934724132b629587419f195b245;hb=59332d13b2b23840452180368914921bffe9bfbc;hp=ac6c09c8967793586eb3830e544f535a3a01ede5;hpb=0ac77ec3150f43a5c2a6b1e47e9db5aafe53fb72;p=git.git diff --git a/run-command.h b/run-command.h index ac6c09c89..967ba8cc0 100644 --- a/run-command.h +++ b/run-command.h @@ -31,7 +31,9 @@ struct child_process { unsigned no_stdout:1; unsigned no_stderr:1; unsigned git_cmd:1; /* if this is to be git sub-command */ + unsigned silent_exec_failure:1; unsigned stdout_to_stderr:1; + unsigned use_shell:1; void (*preexec_cb)(void); }; @@ -44,6 +46,8 @@ extern int run_hook(const char *index_file, const char *name, ...); #define RUN_COMMAND_NO_STDIN 1 #define RUN_GIT_CMD 2 /*If this is to be git sub-command */ #define RUN_COMMAND_STDOUT_TO_STDERR 4 +#define RUN_SILENT_EXEC_FAILURE 8 +#define RUN_USING_SHELL 16 int run_command_v_opt(const char **argv, int opt); /* @@ -68,7 +72,7 @@ struct async { int (*proc)(int fd, void *data); void *data; int out; /* caller reads from here and closes it */ -#ifndef __MINGW32__ +#ifndef WIN32 pid_t pid; #else HANDLE tid;