libuv/src
Ben Noordhuis 3a1be72532 linux: read free/total memory from /proc/meminfo
It was reported that uv_get_free_memory() and uv_get_total_memory()
report the wrong values inside an lxc container.

Libuv calls sysinfo(2) but that isn't intercepted by lxc. /proc/meminfo
however is because /proc is a FUSE fs inside the container.

This commit makes libuv try /proc/meminfo first and fall back to
sysinfo(2) in case /proc isn't mounted.

Fixes: https://github.com/libuv/libuv/issues/2249
PR-URL: https://github.com/libuv/libuv/pull/2258
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2019-04-23 11:49:37 +02:00
..
unix linux: read free/total memory from /proc/meminfo 2019-04-23 11:49:37 +02:00
win unix,win: introduce uv_timeval64_t 2019-04-11 14:08:17 -04:00
fs-poll.c unix, win: make fs-poll close wait for resource cleanup 2019-03-11 09:50:01 +00:00
heap-inl.h
idna.c unix,win: support IDNA 2008 in uv_getaddrinfo() 2018-10-30 20:50:23 +01:00
idna.h unix,win: support IDNA 2008 in uv_getaddrinfo() 2018-10-30 20:50:23 +01:00
inet.c unix: harden string copying, introduce strscpy() 2018-12-04 17:08:09 +01:00
queue.h unix: use QUEUE_MOVE when iterating over lists 2015-10-08 21:47:43 +02:00
strscpy.c unix: harden string copying, introduce strscpy() 2018-12-04 17:08:09 +01:00
strscpy.h unix: harden string copying, introduce strscpy() 2018-12-04 17:08:09 +01:00
threadpool.c unix,win: fix threadpool race condition 2018-10-07 15:50:57 -07:00
timer.c warnings: fix code that emits compiler warnings 2018-11-29 11:21:44 -05:00
uv-common.c unix: support sockaddr_un in uv_udp_send() 2019-04-11 11:04:43 -04:00
uv-common.h unix,win: add uv_fs_{open,read,close}dir() 2019-03-26 18:47:51 -04:00
uv-data-getter-setters.c test,sunos: fix statement not reached warnings 2019-03-16 13:22:16 -04:00
version.c core: add UV_VERSION_HEX macro 2015-06-29 23:08:41 +02:00