projects
/
platform
/
upstream
/
guile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
761cf0f
)
vm: Fix typo when checking for 'madvise' error code.
author
Ludovic Courtès
<ludo@gnu.org>
Mon, 18 Jun 2018 11:46:10 +0000
(13:46 +0200)
committer
Ludovic Courtès
<ludo@gnu.org>
Mon, 18 Jun 2018 12:14:47 +0000
(14:14 +0200)
* libguile/vm.c (return_unused_stack_to_os): Check for EAGAIN, not -EAGAIN.
libguile/vm.c
patch
|
blob
|
history
diff --git
a/libguile/vm.c
b/libguile/vm.c
index 18f2192490d94e4df5bce15987d415b575092d5a..92d5680599dada9ebf196d496acdf91acc898d7b 100644
(file)
--- 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");