projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cvsimport: complete the cvsps run before starting the import
[git.git]
/
connect.c
diff --git
a/connect.c
b/connect.c
index
eca94f7
..
52d709e
100644
(file)
--- a/
connect.c
+++ b/
connect.c
@@
-657,6
+657,8
@@
int git_connect(int fd[2], char *url, const char *prog)
if (pipe(pipefd[0]) < 0 || pipe(pipefd[1]) < 0)
die("unable to create pipe pair for communication");
pid = fork();
if (pipe(pipefd[0]) < 0 || pipe(pipefd[1]) < 0)
die("unable to create pipe pair for communication");
pid = fork();
+ if (pid < 0)
+ die("unable to fork");
if (!pid) {
snprintf(command, sizeof(command), "%s %s", prog,
sq_quote(path));
if (!pid) {
snprintf(command, sizeof(command), "%s %s", prog,
sq_quote(path));