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:
parent
761cf0fb8c
commit
efc33cd149
1 changed files with 1 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue