diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-18 14:10:06 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-18 14:10:06 +0000 |
commit | 05a278b4cdc8456580e51055ccb89fe4d1cd46ed (patch) | |
tree | be02312738c84536b2ab08ccadbbec3c031fff76 /process.c | |
parent | be2d3f5979f10cd06f6d1512ee367b2ec43ef315 (diff) |
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@23204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |