From 072f10c570d6be8b10249ea210960dde1d5dd63c Mon Sep 17 00:00:00 2001 From: azav Date: Fri, 6 Feb 2009 12:54:52 +0000 Subject: Created execl stub as a missing PIPS function git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- process.c | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) (limited to 'process.c') diff --git a/process.c b/process.c index af4d813e7..848d94df2 100644 --- a/process.c +++ b/process.c @@ -1097,9 +1097,7 @@ rb_proc_exec(const char *str) exit(status); #else before_exec(); -#ifndef __SYMBIAN32__ execl("/bin/sh", "sh", "-c", str, (char *)NULL); -#endif preserving_errno(after_exec()); #endif return -1; @@ -1735,8 +1733,8 @@ rb_exec_arg_fixup(struct rb_exec_arg *e) * and the second argument is used as the argv[0] value, * which may show up in process listings. * - * In order to execute the command, one of the exec(2) - * system calls is used, so the running command may inherit some of the environment + * In order to execute the command, one of the exec(2) + * system calls is used, so the running command may inherit some of the environment * of the original program (including open file descriptors). * This behavior is modified by env and options. * See spawn for details. @@ -2674,12 +2672,12 @@ rb_exit(int status) * exit(integer=0) * Kernel::exit(integer=0) * Process::exit(integer=0) - * + * * Initiates the termination of the Ruby script by raising the * SystemExit exception. This exception may be caught. The * optional parameter is used to return a status code to the invoking * environment. - * + * * begin * exit * puts "never get here" @@ -2687,22 +2685,22 @@ rb_exit(int status) * puts "rescued a SystemExit exception" * end * puts "after begin block" - * + * * produces: - * + * * rescued a SystemExit exception * after begin block - * + * * Just prior to termination, Ruby executes any at_exit functions * (see Kernel::at_exit) and runs any object finalizers (see * ObjectSpace::define_finalizer). - * + * * at_exit { puts "at_exit function" } * ObjectSpace.define_finalizer("string", proc { puts "in finalizer" }) * exit - * + * * produces: - * + * * at_exit function * in finalizer */ @@ -2744,7 +2742,7 @@ rb_f_exit(int argc, VALUE *argv) * abort * Kernel::abort * Process::abort - * + * * Terminate execution immediately, effectively by calling * Kernel.exit(1). If _msg_ is given, it is written * to STDERR prior to terminating. @@ -2969,7 +2967,7 @@ rb_f_system(int argc, VALUE *argv) * :unsetenv_others => false : don't clear (default) * process group: * :pgroup => true or 0 : process leader - * :pgroup => pgid : join to specified process group + * :pgroup => pgid : join to specified process group * resource limit: resourcename is core, cpu, data, etc. See Process.setrlimit. * :rlimit_resourcename => limit * :rlimit_resourcename => [cur_limit, max_limit] @@ -3009,7 +3007,7 @@ rb_f_system(int argc, VALUE *argv) * If a hash is given as +options+, * it specifies * process group, - * resource limit, + * resource limit, * current directory, * umask and * redirects for the child process. @@ -3071,7 +3069,7 @@ rb_f_system(int argc, VALUE *argv) * So it is inherited from the parent process. * * The standard input stream (stdin) can be specifed by :in, 0 and STDIN. - * + * * A filename can be specified as a hash value. * * pid = spawn(command, :in=>"/dev/null") # read mode -- cgit