]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Bug #385912. Remove explicit NULL check from none/tests/rlimit_nofile.
authorMark Wielaard <mark@klomp.org>
Fri, 20 Oct 2017 12:55:06 +0000 (14:55 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 20 Oct 2017 12:55:06 +0000 (14:55 +0200)
commit476b52d62dd9513a97235caad6f0275cbb903fc2
tree3b3c183cd4d1f56458619f9ab8cdf19c5a82970c
parentf844689f858d4bb744e59eadaaf984d3fd0b5b50
Bug #385912. Remove explicit NULL check from none/tests/rlimit_nofile.

glibc doesn't guarantee anything about setrlimit with a NULL limit argument.
It could just crash (if it needs to adjust the limit) or might silently
succeed (as newer glibc do). Just remove the extra check.

See also the "setrlimit change to prlimit change in behavior" thread:
https://sourceware.org/ml/libc-alpha/2017-10/threads.html#00830
NEWS
none/tests/rlimit_nofile.c