[LTP] [PATCH v4 3/4] syscalls/msgstress03: fix fork failure on small memory systems

Krzysztof Kozlowski krzysztof.kozlowski@canonical.com
Fri Aug 20 10:35:15 CEST 2021


On 19/08/2021 17:58, Cyril Hrubis wrote:
> Hi!
>> +	free_pids = tst_get_free_pids(cleanup);
>> +	if (free_pids < 0) {
>> +		tst_brkm(TBROK, cleanup, "Can't obtain free_pid count");
>> +	} else if (!free_pids) {
>> +		tst_brkm(TBROK, cleanup, "No free pids");
>> +	}
> 
> This looks like copy&paste from msgstress04.c, can we please move this
> snippet to the library function instead?
> 

I can move it.


Best regards,
Krzysztof


More information about the ltp mailing list