summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-06 05:38:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-06 05:38:11 +0000
commit088474a20dff97f11a71c8f2f5c240bbb0283d46 (patch)
treec30f4e07286f7c37082143eaa5329f5d5b9f8540
parentb5f628a84aa42724a01d6ad97abac46f857ff08b (diff)
* ext/pty/pty.c (chfunc): suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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
}