1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 14:00:21 +02:00

vm: Fix typo when checking for 'madvise' error code.

* libguile/vm.c (return_unused_stack_to_os): Check for EAGAIN, not -EAGAIN.
This commit is contained in:
Ludovic Courtès 2018-06-18 13:46:10 +02:00 committed by Andy Wingo
parent 251202fc90
commit 4611ba2fcf

View file

@ -605,6 +605,7 @@ return_unused_stack_to_os (struct scm_vm *vp)
do
ret = madvise ((void *) lo, hi - lo, MADV_DONTNEED);
while (ret && errno == -EAGAIN);
while (ret && errno == EAGAIN);
if (ret)
perror ("madvise failed");