diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-02-18 10:20:48 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-02-18 10:55:38 -0800 |
| commit | 10f2935c7f2070368dadde582f94c9c76e2fe991 (patch) | |
| tree | 6c4cf1affa6e8e3f6b85afa5ac9384b1f26c4fa2 /reftable/stack.c | |
| parent | 712f6cfe5411fdbbf46688c22a40fac7e0a8839b (diff) | |
| download | git-10f2935c7f2070368dadde582f94c9c76e2fe991.tar.gz | |
reftable/stack: stop using `sleep_millisec()`
Refactor our use of `sleep_millisec()` by open-coding it with poll(3p),
which is the current implementation of this function. Ideally, we'd use
a more direct way to sleep, but there is no equivalent to sleep(3p) that
would accept milliseconds as input.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reftable/stack.c')
| -rw-r--r-- | reftable/stack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/reftable/stack.c b/reftable/stack.c index 08893fd454..6dac015b47 100644 --- a/reftable/stack.c +++ b/reftable/stack.c @@ -524,7 +524,7 @@ static int reftable_stack_reload_maybe_reuse(struct reftable_stack *st, fd = -1; delay = delay + (delay * reftable_rand()) / UINT32_MAX + 1; - sleep_millisec(delay); + poll(NULL, 0, delay); } out: |
