aboutsummaryrefslogtreecommitdiffstats
path: root/process.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge from ruby_1_8.knu2008-05-271-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@16636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge from ruby_1_8.knu2008-05-191-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@16475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c: new method Process.exec; backported from 1.9. bug#19006kazu2008-04-111-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (Init_process): share bignum objects for RLIM_INFINITY,akr2008-02-251-5/+8
| | | | | | | RLIM_SAVED_MAX and RLIM_SAVED_CUR if they are equal. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: moved broken syscall checks from process.c etc.nobu2008-01-111-5/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (struct rb_exec_arg): proc should be a VALUE.nobu2007-09-211-3/+3
| | | | | | | * process.c (rb_f_exec): suppress a warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (struct rb_exec_arg): forgot to commit.nobu2007-09-211-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (proc_prepare_args): commit miss.nobu2007-09-201-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_detach_process): cast for the platforms where size ofnobu2007-09-201-30/+58
| | | | | | | | | | pointer differs from size of int. * process.c (rb_f_exec, rb_f_system): should not exceptions after fork. [ruby-core:08262] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (detach_process_watcher): should not pass the pointernobu2007-08-181-7/+6
| | | | | | | | to an auto variable to the thread to be created. pointed and fix by KUBO Takehiro <kubo at jiubao.org> [ruby-dev:30618] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (ruby_setreuid, ruby_setregid): rename to get rid of namenobu2007-06-261-0/+7
| | | | | | | clash. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (proc_exec_v, rb_proc_exec): preserve errno.nobu2007-06-261-2/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fixed [UG]ID::eid=. Fixes bug # 10370ryan2007-06-121-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (pipe_open): command name should not contain null bytes.matz2006-09-041-5/+7
| | | | | | | | | | | | | [ruby-dev:29421] * process.c (proc_spawn): ditto. * process.c (proc_spawn_n): ditto. * process.c (rb_f_system): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (proc_setuid, proc_setgid, proc_seteuid, proc_setegid):nobu2006-08-161-3/+33
| | | | | | | get rid of bogus implementations on Mac OS X. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_proc_times): rename hz to hertz to avoid namematz2006-07-251-5/+5
| | | | | | | crash on AIX. [ruby-dev:29126] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_f_system): add security check. [ruby-talk:202947]matz2006-07-241-1/+2
| | | | | | | | * process.c (rb_f_system): move signal right before fork to avoid signal handler intervention. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_f_system): block SIGCHLD during the processmatz2006-07-181-10/+15
| | | | | | | execution, like glibc system(3) does. [ruby-talk:202361] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_f_system): call rb_sys_fail(0) if rb_last_statusmatz2006-07-181-1/+1
| | | | | | | is nil. [ruby-talk:202361] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_proc_times): use sysconf(_SC_CLK_TCK) value prior tonobu2006-07-061-4/+10
| | | | | | | HZ and CLK_TCK. fixed: [ruby-talk:200293] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Define Process.getrlimit and Process.setrlimit even ifakr2006-06-151-4/+0
| | | | | | | getrlimit and setrlimit are not exist. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: check sizeof(rlim_t).akr2006-06-141-0/+160
| | | | | | | | | | | | check setrlimit. * process.c (proc_getrlimit): new method Process.getrlimit. (proc_setrlimit): new method Process.setrlimit. * ruby.h (NUM2ULL): new macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_f_sleep): remove description about SIGALRM whichmatz2006-03-241-6/+5
| | | | | | | is not valid on the current implementation. [ruby-dev:28464] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* document that fork doesn't copy other threadsakr2005-11-201-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * merged a patch from Takahiro Kambe <taca@back-street.net> tomatz2005-09-081-6/+0
| | | | | | | | | | | | | | support DragonFly BSD. [ruby-dev:26984] * object.c (rb_mod_cvar_get, rb_mod_cvar_set): document fix from sheepman <sheepman@sheepman.sakura.ne.jp>; a bug in visibility description. [ruby-dev:26965] * sprintf.c (rb_f_sprintf): warn "too many argument" on verbose mode (-v/-w); backported from 1.9. [ruby-dev:26963] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (proc_detach, proc_setmaxgroups): missing argument typeocean2005-08-311-149/+147
| | | | | | | declaration. (I recomment ANSI-style function) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (detach_process_wathcer): fixed typo.nobu2005-06-301-9/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_eval): pre-evaluate argument for unambiguousmatz2005-06-301-1/+1
| | | | | | | | | | | | | | evaluation order. [ruby-dev:26383] * lib/delegate.rb (Delegator::method_missing): forward unknown method to the destination. suggested by <christophe.poucet@gmail.com>. [ruby-talk:146776] * process.c (detach_process_watcher): terminate process watcher thread right after rb_waitpid() succeed. [ruby-talk:146430] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c, eval.c, hash.c, process.c, ruby.c: avoid warning "unusedocean2005-06-281-1/+7
| | | | | | | | | variable" [ruby-dev:26387] (patch from Kazuhiro NISHIYAMA) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: Check for the availability of pid_t, gid_t and uid_t andnobu2005-05-141-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | remove AC_TYPE_UID_T. fixed: [ruby-core:04745] * defines.h: Remove pid_t typedef. * ruby.h: Define rb_pid_t, rb_gid_t and rb_uid_t in accordance with the available system types. * process.c: Change instances of pid_t and gid_t to their rb_* counterparts. * ext/pty/pty.c: Change pid_t to rb_pid_t. * vms/config.h: Define HAVE_{P,G,U}ID_T to 1. * win32/Makefile.sub: Remove #define for {g,u}id_t. * win32/win32.c: Change pid_t to rb_pid_t. * wince/Makefile.sub: Remove #define for {g,u}id_t. * wince/sys/types.h: Remove definitions of {p,g,u}id_t. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * exception error messages updated. [ruby-core:04497]matz2005-02-281-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_s_create): no need for negative argc check.matz2005-02-231-2/+2
| | | | | | | | | | | | | | | [ruby-core:04463] * array.c (rb_ary_unshift_m): ditto. * lib/xmlrpc/parser.rb (XMLRPC::FaultException): make it subclass of StandardError class, not Exception class. [ruby-core:04429] * lib/open3.rb (Open3::popen3): $? should not be EXIT_FAILURE. fixed: [ruby-core:04444] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (proc_setgroups): check if the argument lenght isnobu2004-12-231-1/+1
| | | | | | | modified. fixed: [ruby-dev:25285] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (proc_setgroups): [ruby-dev:25081]matz2004-12-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * re.c (rb_reg_eqq): document fix. [ruby-talk:122541] * ext/socket/socket.c (sock_connect): use rb_str_new4(). [ruby-dev:25052] * io.c (io_write): remove rb_str_locktmp(). [ruby-dev:25050] * io.c (io_fwrite): takes VALUE string as an argument. [ruby-dev:25050] * ext/socket/socket.c (sock_connect): remove rb_str_locktmp(). [ruby-dev:25050] * ext/socket/socket.c (udp_connect): [ruby-dev:25045] * ext/socket/socket.c (udp_bind): ditto. * ext/socket/socket.c (udp_send): ditto. * ext/socket/socket.c (bsock_send): ditto. * ext/socket/socket.c (s_recvfrom): ditto. * hash.c (rb_hash_hash): should provide "hash" method where "eql?" is redefined. [ruby-talk:122482] * ext/socket/socket.c (bsock_setsockopt): [ruby-dev:25039] * hash.c (rb_hash_hash): should provide "hash" method where "eql?" is redefined. [ruby-talk:122482] * ext/socket/socket.c (bsock_setsockopt): [ruby-dev:25039] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (proc_getpgrp): prohibit for $SAFE=2.matz2004-11-181-29/+27
| | | | | | | | | | | | | | | | | | | | | | | | [ruby-dev:24899] * process.c (get_pid): ditto. [ruby-dev:24904] * process.c (get_ppid): ditto. * array.c (rb_ary_delete): defer rb_ary_modify() until actual modification. [ruby-dev:24901] * parse.y (newline_node): should not use FL_SET. [ruby-dev:24874] * parse.y (string_content): should not use FL_UNSET. * node.h (NODE_NEWLINE): remove unused bit to utilize flag field in nodes. * string.c (rb_str_splice): move rb_str_modify() after StringValue(), which may alter the receiver. [ruby-dev:24878] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* On NetBSD don't use setruid() and setrgid().naruse2004-11-031-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_f_fork): need to flush stdout and stderr beforematz2004-11-021-0/+6
| | | | | | | fork(2). [ruby-talk:117715] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_sum): check was done with false pointer.matz2004-10-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | [ruby-dev:24383] * string.c (rb_str_sum): string may be altered. [ruby-dev:24381] * eval.c (rb_f_eval): defer pointer retrieval to prevent unsafe sourcefile string modification. [ruby-dev:24373] * io.c (io_read): block string buffer modification during rb_io_fread() by freezing it temporarily. [ruby-dev:24366] * io.c (rb_io_s_popen): mode argument may be altered. [ruby-dev:24375] * file.c (rb_file_s_basename): ext argument may be altered. [ruby-dev:24377] * enum.c (enum_sort_by): use NODE instead of 2 element arrays. [ruby-dev:24378] * string.c (rb_str_chomp_bang): StringValue() may change the receiver. [ruby-dev:24371] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typo(?).usa2004-09-221-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add documentation to fork()dave2004-09-211-2/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/ruby-lex.rb (RubyLex::identify_string): %s string do notmatz2004-07-221-0/+4
| | | | | | | process expression interpolation. [ruby-talk:106691] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_f_system): not need to call last_status_set() anyusa2004-07-211-3/+1
| | | | | | | longer on _WIN32. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (pst_success_p): new method Process::Status#success?.nobu2004-04-151-0/+1
| | | | | | | [ruby-dev:23385] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (pst_success_p): new method Process::Status#success?.nobu2004-04-151-1/+21
| | | | | | | [ruby-dev:23385] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c, enum.c, eval.c, file.c, io.c, numeric.c, object.c, prec.c,nobu2004-04-141-1/+1
| | | | | | | process.c, re.c, string.c: typos in RDoc comments. [ruby-core:02783] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add HTML formatter to ridave2004-01-111-4/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c, object.c, process.c, re.c: don't use C++ style comments.eban2004-01-081-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Finish documenting internal stuff. See Changelog for other detailsdave2004-01-021-3/+1004
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.h: define execv() using do_aspawn().eban2003-12-101-4/+0
| | | | | | | * process.c (proc_exec_v): remove #ifdef's which stopped needing. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_f_exit), process.c (rb_f_exit_bang): use VALUEs not butnobu2003-11-271-2/+2
| | | | | | | TYPEs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e