aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index dd40be0ece..c272256d4b 100644
--- a/thread.c
+++ b/thread.c
@@ -2672,7 +2672,7 @@ rb_thread_select(int max, fd_set * read, fd_set * write, fd_set * except,
return 0;
}
else {
- int lerrno;
+ int lerrno = errno;
int result;
BLOCKING_REGION({