guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] 28/58: vm: Fix typo when checking for 'madvise' error co


From: Andy Wingo
Subject: [Guile-commits] 28/58: vm: Fix typo when checking for 'madvise' error code.
Date: Tue, 7 Aug 2018 06:58:34 -0400 (EDT)

wingo pushed a commit to branch lightning
in repository guile.

commit 4611ba2fcf46f7e959010e1c9d96459e73fa8f39
Author: Ludovic Courtès <address@hidden>
Date:   Mon Jun 18 13:46:10 2018 +0200

    vm: Fix typo when checking for 'madvise' error code.
    
    * libguile/vm.c (return_unused_stack_to_os): Check for EAGAIN, not -EAGAIN.
---
 libguile/vm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libguile/vm.c b/libguile/vm.c
index 7720afa..83a2b21 100644
--- a/libguile/vm.c
+++ b/libguile/vm.c
@@ -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");



reply via email to

[Prev in Thread] Current Thread [Next in Thread]