summaryrefslogtreecommitdiff
path: root/ext/pty
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pty')
-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 76543dbaec..36392f2270 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
}