[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");
- [Guile-commits] branch stable-2.2 updated (ac9f083 -> 1c970da), Ludovic Courtès, 2018/06/18
- [Guile-commits] 02/07: tests: Add SRFI-71 test., Ludovic Courtès, 2018/06/18
- [Guile-commits] 05/07: get-bytevector-n and get-bytevector-n! can now read more than 4 GB, Ludovic Courtès, 2018/06/18
- [Guile-commits] 04/07: vm: Fix typo when checking for 'madvise' error code.,
Ludovic Courtès <=
- [Guile-commits] 07/07: doc: Document (ice-9 match) macros., Ludovic Courtès, 2018/06/18
- [Guile-commits] 03/07: Make module autoloading thread-safe., Ludovic Courtès, 2018/06/18
- [Guile-commits] 01/07: Add SRFI 71: Extended LET-syntax for multiple values., Ludovic Courtès, 2018/06/18
- [Guile-commits] 06/07: doc: Fix typo., Ludovic Courtès, 2018/06/18