1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-02 04:40:29 +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
parent 761cf0fb8c
commit efc33cd149

View file

@ -903,6 +903,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");