Re: [RFC PATCH 3/3] test-lib: add the '--stress' option to run a test repeatedly under load
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 6, 2018, 06:41 UTC
- Message-ID
- <xmqqva4788cw.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <20181206053525.GA29481@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
> Each "wait" will try to collect all processes, but may be interrupted by > a signal. So the correct number is actually "1 plus the number of times > the user hits ^C".
Yeah and that is not bounded. It is OK not to catch multiple ^C that races with what we do, so having ane extra wait in the clean-up procedure after receiving a signal like you suggested would be both good enough and the cleanest solution, I think.
Thanks.