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

github.com/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2015-06-05 22:45:05 +0300
committerJunio C Hamano <gitster@pobox.com>2015-06-06 01:00:32 +0300
commit2024d3176536fd437b4c0a744161e96bc150a24e (patch)
treef1eae651d898a045d48cf6ecac60f22f4dff1cd4 /wrapper.c
parent1e9676ec0a771de06abca3009eb4bdc5a4ae3312 (diff)
help.c: wrap wait-only poll() invocation in sleep_millisec()
We want to use the new function elsewhere in a moment. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Reviewed-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'wrapper.c')
-rw-r--r--wrapper.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wrapper.c b/wrapper.c
index c1a663fd592..ff49807948f 100644
--- a/wrapper.c
+++ b/wrapper.c
@@ -595,3 +595,8 @@ int write_file(const char *path, int fatal, const char *fmt, ...)
}
return 0;
}
+
+void sleep_millisec(int millisec)
+{
+ poll(NULL, 0, millisec);
+}