[pypy-commit] pypy default: fix for translation, I should have included errno.h. translation started annotation
plan_rich
pypy.commits at gmail.com
Mon Jun 5 14:19:33 EDT 2017
Author: Richard Plangger <planrichi at gmail.com>
Branch:
Changeset: r91530:beebaffe3671
Date: 2017-06-05 14:18 -0400
http://bitbucket.org/pypy/pypy/changeset/beebaffe3671/
Log: fix for translation, I should have included errno.h. translation
started annotation
diff --git a/rpython/rlib/rvmprof/src/shared/symboltable.c b/rpython/rlib/rvmprof/src/shared/symboltable.c
--- a/rpython/rlib/rvmprof/src/shared/symboltable.c
+++ b/rpython/rlib/rvmprof/src/shared/symboltable.c
@@ -11,6 +11,7 @@
#include <assert.h>
#include <dlfcn.h>
+#include <errno.h>
#if defined(VMPROF_LINUX)
#include <link.h>
@@ -317,7 +318,7 @@
}
if (r == -1) {
- if (errno == EINTR) {
+ while (errno == EINTR) {
if ((r = read(fileno, buf, (size_t)size)) == size) {
return r;
}
More information about the pypy-commit
mailing list