From 2024d3176536fd437b4c0a744161e96bc150a24e Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Fri, 5 Jun 2015 21:45:05 +0200 Subject: 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 Reviewed-by: Michael Haggerty Signed-off-by: Junio C Hamano --- wrapper.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'wrapper.c') diff --git a/wrapper.c b/wrapper.c index c1a663fd5..ff4980794 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); +} -- cgit v1.2.1