aboutsummaryrefslogtreecommitdiff
path: root/src/lib/meminfo/meminfo.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-09-11 09:13:50 -0400
committerNick Mathewson <nickm@torproject.org>2019-09-11 09:13:50 -0400
commit0891a31ad32d0567fbc8f73a0598925cb543d699 (patch)
tree5ac10a3540a4a931ddc9b3f29aefcbab39d5f040 /src/lib/meminfo/meminfo.c
parent4596ead2fc88e4b1482b0f3bc8ff356daea2337b (diff)
downloadtor-0891a31ad32d0567fbc8f73a0598925cb543d699.tar.gz
tor-0891a31ad32d0567fbc8f73a0598925cb543d699.zip
madvise: tolerate EINVAL and ENOSYS when minherit fails
These errors can occur if we are built on a system with support for madvise(MADV_NOFORK) but then we are run on a system whose kernel does not support that flag. If the error is something that we don't tolerate at all, we now log it before crashing. Fixes bug 31696. I am calling this a bugfix on 0.4.1.1-alpha, where we actually started using the map_anon code. This is similar to, but not the same as, the fix for #31570.
Diffstat (limited to 'src/lib/meminfo/meminfo.c')
0 files changed, 0 insertions, 0 deletions