lockfile: wait using sleep_millisec() instead of select()
commit30f8160d26f11156a6792565fe694c813406b929
authorJohannes Sixt <j6t@kdbg.org>
Fri, 5 Jun 2015 19:45:07 +0000 (5 21:45 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Jun 2015 22:00:32 +0000 (5 15:00 -0700)
treeb2b1b2e06ff0319a807242e99883d01b1cd278c3
parenta8a17756bbc9617ba22d0c78a73fce5bb2faa6f2
lockfile: wait using sleep_millisec() instead of select()

Use the new function sleep_millisec() to delay execution for a short
time. This avoids the invocation of select() with just a timeout, but
no file descriptors. Such a use of select() is quit with EINVAL on
Windows, leading to no delay at all.

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>
lockfile.c