-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use std::process::Command to spawn mercurial/ssh process
- Loading branch information
Showing
7 changed files
with
101 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,14 @@ | ||
diff --git a/run-command.c b/run-command.c | ||
index 5ec3a46dcc..9d10ed27b8 100644 | ||
index 7e4e2e7fb66..fc4932219fe 100644 | ||
--- a/run-command.c | ||
+++ b/run-command.c | ||
@@ -722,7 +722,7 @@ int start_command(struct child_process *cmd) | ||
trace2_child_start(cmd); | ||
trace_run_command(cmd); | ||
|
||
- fflush(NULL); | ||
+ //fflush(NULL); | ||
|
||
if (cmd->close_object_store) | ||
close_object_store(the_repository->objects); | ||
@@ -1211,7 +1211,7 @@ int start_async(struct async *async) | ||
|
||
#ifdef NO_PTHREADS | ||
/* Flush stdio before fork() to avoid cloning buffers */ | ||
- fflush(NULL); | ||
+ //fflush(NULL); | ||
|
||
async->pid = fork(); | ||
if (async->pid < 0) { | ||
@@ -285,7 +285,8 @@ char *git_shell_path(void) | ||
#endif | ||
} | ||
|
||
-static const char **prepare_shell_cmd(struct strvec *out, const char **argv) | ||
+const char **prepare_shell_cmd(struct strvec *out, const char **argv); | ||
+const char **prepare_shell_cmd(struct strvec *out, const char **argv) | ||
{ | ||
if (!argv[0]) | ||
BUG("shell command is empty"); |