summaryrefslogtreecommitdiffstats
path: root/process.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-18 14:10:06 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-18 14:10:06 +0000
commit3ba5f71e1b1343e339cd52b91dea3ea2e8db7775 (patch)
treebe02312738c84536b2ab08ccadbbec3c031fff76 /process.c
parent0abe46fde591eedf5dacd1d25a73baaf7cfff317 (diff)
downloadruby-3ba5f71e1b1343e339cd52b91dea3ea2e8db7775.tar.gz
ruby-3ba5f71e1b1343e339cd52b91dea3ea2e8db7775.tar.xz
ruby-3ba5f71e1b1343e339cd52b91dea3ea2e8db7775.zip
* ext/readline/readline.c: use rb_f_notimplement for methods not
implemented. * ext/openssl/ossl_engine.c: ditto. * ext/openssl/ossl_config.c: ditto. * ext/openssl/ossl_cipher.c: ditto. * ext/openssl/ossl_pkcs5.c: ditto. * ext/openssl/ossl_x509ext.c: ditto. * ext/socket/socket.c: ditto. * ext/socket/basicsocket.c: ditto. * ext/socket/ancdata.c: ditto. * ext/socket/unixsocket.c: ditto. * ext/iconv/iconv.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/process.c b/process.c
index 27682133d..a44a9b511 100644
--- a/process.c
+++ b/process.c
@@ -3304,7 +3304,7 @@ proc_setpgrp(void)
/* this confusion. */
#ifdef HAVE_SETPGID
if (setpgid(0,0) < 0) rb_sys_fail(0);
-#else /* defined(HAVE_SETPGRP) && defined(SETPGRP_VOID) */
+#elif defined(HAVE_SETPGRP) && defined(SETPGRP_VOID)
if (setpgrp() < 0) rb_sys_fail(0);
#endif
return INT2FIX(0);
@@ -3388,7 +3388,7 @@ proc_setsid(void)
pid = setsid();
if (pid < 0) rb_sys_fail(0);
return PIDT2NUM(pid);
-#else /* defined(HAVE_SETPGRP) && defined(TIOCNOTTY) */
+#elif defined(HAVE_SETPGRP) && defined(TIOCNOTTY)
rb_pid_t pid;
int ret;
@@ -4538,7 +4538,7 @@ proc_daemon(int argc, VALUE *argv)
after_fork();
if (n < 0) rb_sys_fail("daemon");
return INT2FIX(n);
-#else /* defined(HAVE_FORK) */
+#elif defined(HAVE_FORK)
switch (rb_fork(0, 0, 0, Qnil)) {
case -1:
return (-1);