guile-commits
[Top][All Lists]
Advanced

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

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


From: Ludovic Courtès
Subject: [Guile-commits] 04/07: vm: Fix typo when checking for 'madvise' error code.
Date: Mon, 18 Jun 2018 08:15:23 -0400 (EDT)

civodul pushed a commit to branch stable-2.2
in repository guile.

commit efc33cd1497c00c5ebf961e834efc1d85f3e28ac
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 18f2192..92d5680 100644
--- a/libguile/vm.c
+++ b/libguile/vm.c
@@ -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");



reply via email to

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