diff options
author | SZEDER Gábor <szeder.dev@gmail.com> | 2019-03-13 13:24:17 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-03-14 12:34:39 +0900 |
commit | 0e67c32955cee24c5ff534dd3f5f0de58ba91d02 (patch) | |
tree | 947e5f77fb2fc47bada532c3c8900f4ed054fc01 /pack-write.c | |
parent | 07353d9042f19fec749ec8413ff7e6824460ee59 (diff) | |
download | git-0e67c32955cee24c5ff534dd3f5f0de58ba91d02.tar.gz |
git p4 test: simplify timeout handling
'lib-git-p4.sh' uses timeouts in a watchdog process to kill a
potentially stuck 'p4d' process and for certain cleanup operation
between tests. It does so by first computing when the timeout should
expire, and then repeatedly asking for the current time in seconds
until it exceeds the expiration time, and for portability reasons it
uses a one-liner Python script to ask for the current time.
Replace these timeouts with downcounters, which, though not
necessarily shorter, are much simpler, at least in the sense that they
don't execute the Python interpreter every second.
After this change the helper function with that Python one-liner has
no callers left, remove it.
Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-write.c')
0 files changed, 0 insertions, 0 deletions