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>
This commit is contained in:
Johannes Sixt
2015-06-05 21:45:05 +02:00
committed by Junio C Hamano
parent 1e9676ec0a
commit 2024d31765
3 changed files with 7 additions and 1 deletions

View File

@ -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);
}