summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/pty/pty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c
index 76543dbaeca..36392f22703 100644
--- a/ext/pty/pty.c
+++ b/ext/pty/pty.c
@@ -205,7 +205,8 @@ chfunc(void *data, char *errbuf, size_t errbuf_len)
seteuid(getuid());
#endif
- return rb_f_exec(argc, argv);
+ rb_f_exec(argc, argv);
+ return 0;
#undef ERROR_EXIT
}