[ruby-cvs:57343] akr:r50194 (trunk): * internal.h (rb_execarg_parent_end): Declared.

akr at ruby-lang.org akr at ruby-lang.org
Thu Apr 9 21:44:38 JST 2015


akr	2015-04-09 21:44:35 +0900 (Thu, 09 Apr 2015)

  New Revision: 50194

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50194

  Log:
    * internal.h (rb_execarg_parent_end): Declared.
    
    * process.c: "spawn" opens files in the parent process.
      (check_exec_redirect): Add an placeholder for fd in parameters
      for fd_open.
      (check_exec_fds_1): Delete fd_open condition.
      (check_exec_fds): Don't call check_exec_fds_1 with fd_open.
      (rb_execarg_parent_start): Open files specified as "spawn" options
      and add "dup2" options.
      (rb_execarg_parent_end): New function to close opened fds.
      (run_exec_open): Removed.
      (rb_execarg_run_options): Don't call run_exec_open.
      (rb_spawn_internal): Call rb_execarg_parent_end.
    
    * io.c (pipe_open): Call rb_execarg_parent_end.
    
    * ext/pty/pty.c (establishShell): Call rb_execarg_parent_end.

  Modified files:
    trunk/ChangeLog
    trunk/ext/pty/pty.c
    trunk/internal.h
    trunk/io.c
    trunk/process.c
    trunk/test/ruby/test_process.rb


More information about the ruby-cvs mailing list