OSDN Git Service

Don't call clock_getres in sysconf.
authorElliott Hughes <enh@google.com>
Sat, 5 Mar 2016 02:25:57 +0000 (18:25 -0800)
committerElliott Hughes <enh@google.com>
Sat, 5 Mar 2016 02:28:53 +0000 (18:28 -0800)
commitd2b8de2cd16ecd86c830d98c58bcf392475bd0b3
treeebd7f6cc626c63e3db8fbdb9dc3a6a8858922655
parentc4d2bede1592dd82dce9bfc6ebecdc414a79490b
Don't call clock_getres in sysconf.

There are a hundred other reasons why we can't run on kernels old enough
to not have all the clocks covered by sysconf.

This was causing trouble for jemalloc 4.1.0 in a seccomp-constrained process
because jemalloc 4.1.0 introduced a call to sysconf that caused us to make
clock_getres syscalls for the first time, leading to SIGSYS.

Bug: http://b/27408522
Change-Id: I2eb6986d871bc03cbef278e5617734409c39e057
libc/bionic/sysconf.cpp