mirror of
https://github.com/git/git.git
synced 2024-11-18 07:03:57 +01:00
128aed684d
When calling post-update hook, don't leave stdin and stdout connected to the pushing connection. Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
21 lines
447 B
C
21 lines
447 B
C
#ifndef RUN_COMMAND_H
|
|
#define RUN_COMMAND_H
|
|
|
|
#define MAX_RUN_COMMAND_ARGS 256
|
|
enum {
|
|
ERR_RUN_COMMAND_FORK = 10000,
|
|
ERR_RUN_COMMAND_EXEC,
|
|
ERR_RUN_COMMAND_WAITPID,
|
|
ERR_RUN_COMMAND_WAITPID_WRONG_PID,
|
|
ERR_RUN_COMMAND_WAITPID_SIGNAL,
|
|
ERR_RUN_COMMAND_WAITPID_NOEXIT,
|
|
};
|
|
|
|
#define RUN_COMMAND_NO_STDIO 1
|
|
|
|
int run_command_v_opt(int argc, char **argv, int opt);
|
|
int run_command_v(int argc, char **argv);
|
|
int run_command(const char *cmd, ...);
|
|
|
|
#endif
|