summaryrefslogtreecommitdiffstats
path: root/byterun/backtrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'byterun/backtrace.c')
-rw-r--r--byterun/backtrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/byterun/backtrace.c b/byterun/backtrace.c
index 523677004..78f749f4d 100644
--- a/byterun/backtrace.c
+++ b/byterun/backtrace.c
@@ -93,7 +93,7 @@ static value read_debug_info(void)
close(fd);
CAMLreturn(Val_false);
}
- chan = open_descriptor(fd);
+ chan = open_descriptor_in(fd);
num_events = getword(chan);
events = alloc(num_events, 0);
for (i = 0; i < num_events; i++) {