summaryrefslogtreecommitdiffstats
path: root/process.c
Commit message (Collapse)AuthorAgeFilesLines
* * process.c (rb_f_exec): fixed rdoc.nobu2009-11-101-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_f_exec, rb_f_system, rb_f_spawn): mentioned aboutnobu2009-11-091-3/+10
| | | | | | | | the shell to be used when the command line is single string. See [ruby-core:26652] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (proc_setgroups): fixed type.nobu2009-09-221-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (run_exec_dup2): fixed type.nobu2009-09-211-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c, cont.c, gc.c, insns.def, iseq.c, iseq.h, process.c,nobu2009-09-211-17/+17
| | | | | | | | | thread.c, vm.c, vm_core.h, vm_dump.c, vm_eval.c, vm_insnhelper.c, vm_method.c, template/insns_info.inc.tmpl, tool/instruction.rb: fixed types. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-08-111-1/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c: remove __CHECKER__ test.akr2009-06-221-12/+12
| | | | | | | | | | | | | | * dir.c: ditto. * dln.c: ditto. * file.c: ditto. * process.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (proc_setegid): define only if needed.nobu2009-04-251-1/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (proc_seteuid): define only if needed.nobu2009-04-251-1/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c: fixed types.nobu2009-04-251-16/+14
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (ac_cv_func_daemon): use daemon(3) only on *BSD.nobu2009-04-251-1/+11
| | | | | | | | * process.c (proc_daemon): double fork to ensure not having ctty. [ruby-core:23311] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (proc_seteuid_m): defined to use rb_f_notimplement if notakr2009-04-181-2/+14
| | | | | | | | | implemented. (proc_setegid_m): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (proc_setuid): use rb_f_notimplement if not implemented.akr2009-04-181-4/+8
| | | | | | | (proc_setgid): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c: use rb_f_notimplement for methods notakr2009-04-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* update rdoc.akr2009-04-181-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * node.h (rb_notimplement_body_p): declared.akr2009-04-161-98/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * vm_method.c (Init_eval_method): suppress a warning. * io.c (rb_io_fsync): use rb_f_notimplement if not implemented. (rb_io_close_on_exec_p): ditto. (rb_io_set_close_on_exec): ditto. (rb_io_fcntl): ditto. (rb_f_syscall): ditto. * dir.c (dir_tell): ditto. (dir_seek): ditto. (dir_s_chroot): ditto. * process.c (proc_getpgrp): ditto. (proc_setpgrp): ditto. (proc_getpgid): ditto. (proc_setpgid): ditto. (proc_setsid): ditto. (proc_getpriority): ditto. (proc_setpriority): ditto. (proc_getrlimit): ditto. (proc_setrlimit): ditto. (p_sys_setuid): ditto. (p_sys_setruid): ditto. (p_sys_seteuid): ditto. (p_sys_setreuid): ditto. (p_sys_setresuid): ditto. (p_sys_setgid): ditto. (p_sys_setrgid): ditto. (p_sys_setegid): ditto. (p_sys_setregid): ditto. (p_sys_setreuid): ditto. (p_sys_setresgid): ditto. (p_sys_issetugid): ditto. (proc_getgroups): ditto. (proc_setgroups): ditto. (proc_initgroups): ditto. (proc_daemon): ditto. (rb_proc_times): ditto. * file.c (rb_file_s_lchown): ditto. (rb_file_s_link): ditto. (rb_file_s_symlink): ditto. (rb_file_s_readlink): ditto. (rb_file_s_truncate): ditto. (rb_file_truncate): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c (rb_define_method_id): use rb_define_notimplement_method_idakr2009-04-161-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | if rb_f_notimplement is given. (rb_define_protected_method): ditto. (rb_define_private_method): ditto. (rb_define_method): use rb_define_method_id. * include/ruby/intern.h (rb_f_notimplement): declared. (rb_define_notimplement_method_id): declared. * proc.c (method_inspect): show not-implemented. * vm_method.c (notimplement_body): new variable. (rb_notimplement_body_p): new function. (rb_method_boundp): return false if not implemented. (rb_f_notimplement): new function. (rb_define_notimplement_method_id): new function. * process.c (rb_f_fork): use rb_f_notimplement if not implemented. * file.c (rb_file_s_lchmod): use rb_f_notimplement if not implemented. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_f_sleep): RDoc disambiguation. [ruby-talk:332632]matz2009-04-011-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update rdoc.akr2009-03-311-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (Init_process): Better patch for eliminating anknu2009-03-231-4/+8
| | | | | | | | | "unused variable". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_exec): prints error message only on platformsnobu2009-03-201-6/+15
| | | | | | | neither close-on-exec nor spawnv is supported. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_spawn_internal): suppressed a warning.nobu2009-03-161-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (SAVED_GROUP_ID, p_gid_switch): should be rb_gid_t.nobu2009-03-141-4/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_spawn_internal): use int variable for status.akr2009-03-141-3/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_f_system): use rb_pid_t for pid.akr2009-03-141-12/+13
| | | | | | | (rb_spawn_internal): local variable renamed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_f_sleep): time() needs time_t.nobu2009-03-111-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_waitpid): use wait_each() on no waitpid platforms.nobu2009-03-011-34/+44
| | | | | | | [ruby-dev:38054] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (proc_daemon): stops and restarts timer thread becausenobu2009-03-011-0/+3
| | | | | | | daemon(3) implies fork(2). [ruby-dev:38055] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-02-241-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_waitpid): last argument was missing.nobu2009-02-241-2/+2
| | | | | | | | * process.c (waitall_each): fixed typo. a patch from shinichiro.h <shinichiro.hamaji AT gmail.com> at [ruby-dev:38054]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-02-221-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-02-221-12/+13
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_write_error2, argf_next_argv), process.c (rb_fork_err),nobu2009-02-181-2/+2
| | | | | | | random.c (fill_random_seed): suppress warnings. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_fork): initialization with dynamic values is notnobu2009-02-121-1/+3
| | | | | | | allowed in C89. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Created execl stub as a missing PIPS functionazav2009-02-061-16/+14
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h (rb_run_exec_options_err): renamed fromakr2009-02-051-13/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rb_run_exec_options. (rb_exec_err): renamed from rb_exec. (rb_fork_err): renamed from rb_fork. (rb_spawn_err): renamed from rb_spawn. (rb_run_exec_options): declared with 1.9.1 compatible signature. (rb_exec): ditto. (rb_fork): ditto. (rb_spawn): ditto. * process.c (rb_run_exec_options_err): renamed from rb_run_exec_options. (rb_exec_err): renamed from rb_exec. (rb_fork_err): renamed from rb_fork. (rb_spawn_err): renamed from rb_spawn. (rb_run_exec_options): defined. (rb_exec): ditto. (rb_fork): ditto. (rb_spawn): ditto. * io.c: follow above change. * ext/pty/pty.c: follow above change. [ruby-dev:37893] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (proc_spawn_v): removed unused variable.nobu2009-01-261-1/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * symbian/README.SYMBIAN: symbian support added. great appreciatematz2009-01-151-0/+2
| | | | | | to <alexandre.zavorine at symbian.com>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c: use sigaction instead of sigset. [ruby-core:21021]mame2009-01-021-6/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (before_exec): it makes no sense for a conditionalshyouhei2009-01-011-1/+1
| | | | | | | expression to return a void value. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_waitpid): retries waitpid when EINTR.yugui2008-12-291-5/+4
| | | | | | [ruby-core:19744]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (after_exec): needs to reset before restart timernobu2008-12-271-1/+1
| | | | | | | | | | thread. * thread.c (thread_start_func_2): stops timer thread if forked in the new thread. [ruby-core:19385] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (after_fork): ignores a termination request in thenobu2008-12-261-1/+1
| | | | | | | parent process. [ruby-dev:37447] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_fork): don't propagete an error message if errorakr2008-12-231-2/+4
| | | | | | | buffer not given. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_fork): propagete an error message from child to parent.akr2008-12-231-53/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (rb_f_exec): show details of error in child process on exception. (save_redirect_fd): add error message arguments. (run_exec_dup2): ditto. (run_exec_close): ditto. (run_exec_open): ditto. (run_exec_dup2_child): ditto. (run_exec_pgroup): ditto. (run_exec_rlimit): ditto. (rb_run_exec_options): ditto. (rb_exec): ditto. (rb_exec_atfork): ditto. (rb_spawn_internal): ditto. (rb_spawn): ditto. (rb_f_system): follow arguments change. (proc_daemon): ditto. (rb_f_spawn): show details of error in child process on exception. * io.c (popen_exec): add error message arguments. (pipe_open): show details of error in child process on exception. * include/ruby/intern.h (rb_run_exec_options): add error message arguments. (rb_exec): ditto. (rb_fork): ditto. (rb_spawn): ditto. * ext/pty/pty.c (chfunc): add error message arguments. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (forked_child): new variable.akr2008-12-131-2/+5
| | | | | | | | | | | | | | | | (before_exec): don't call rb_thread_stop_timer_thread if forked_child. (after_exec): reset forked_child after rb_thread_start_timer_thread. (rb_fork): set forked_child just after fork in child. * ext/pty/pty.c (chfunc): extracted from establishShell. (establishShell): use rb_fork. [ruby-dev:37418] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2008-12-061-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc udpate.akr2008-12-051-20/+37
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2008-12-051-27/+37
| | | | | | | | prefer :in over STDIN because STDIN.fileno may changed if STDIN.instance_eval { initialize 1 }. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (run_exec_dup2): !save is false if Qnil.akr2008-12-051-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e