Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Sixt <johannes.sixt@telecom.at>2007-12-09 00:19:14 +0300
committerJohannes Sixt <johannes.sixt@telecom.at>2008-06-26 10:45:08 +0400
commit618ebe9ff997d27714487c4a4232720be240badc (patch)
tree407a0efd989568bcadf3acbd195fd7aa3d5e4c86 /run-command.h
parentbe501813d25bedc1a441940f349fb91bd9fa4ef6 (diff)
Windows: Implement asynchronous functions as threads.
In upload-pack we must explicitly close the output channel of rev-list. (On Unix, the channel is closed automatically because process that runs rev-list terminates.) Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Diffstat (limited to 'run-command.h')
-rw-r--r--run-command.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/run-command.h b/run-command.h
index debe3074b5..5203a9ebb1 100644
--- a/run-command.h
+++ b/run-command.h
@@ -76,7 +76,12 @@ struct async {
int (*proc)(int fd, void *data);
void *data;
int out; /* caller reads from here and closes it */
+#ifndef __MINGW32__
pid_t pid;
+#else
+ HANDLE tid;
+ int fd_for_proc;
+#endif
};
int start_async(struct async *async);