Split run_command into two halves (start/finish)
[gitweb.git] / run-command.h
index f9db2a7f8cc0462f3a2b5a8edf95348259990010..24cdb4eb190b6bea844e7c674ea4caf32462caa0 100644 (file)
@@ -12,11 +12,14 @@ enum {
 
 struct child_process {
        const char **argv;
+       pid_t pid;
        unsigned no_stdin:1;
        unsigned git_cmd:1; /* if this is to be git sub-command */
        unsigned stdout_to_stderr:1;
 };
 
+int start_command(struct child_process *);
+int finish_command(struct child_process *);
 int run_command(struct child_process *);
 
 #define RUN_COMMAND_NO_STDIN 1