summaryrefslogtreecommitdiff
path: root/ext/pty/pty.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pty/pty.c')
-rw-r--r--ext/pty/pty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c
index 5b2eafff9c..8eaf73a624 100644
--- a/ext/pty/pty.c
+++ b/ext/pty/pty.c
@@ -628,7 +628,7 @@ raise_from_check(pid_t pid, int status)
state = "exited";
}
msg = rb_sprintf("pty - %s: %ld", state, (long)pid);
- exc = rb_exc_new_str(eChildExited, msg);
+ exc = rb_exc_new3(eChildExited, msg);
rb_iv_set(exc, "status", rb_last_status_get());
rb_exc_raise(exc);
}