1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/include/ruby
naruse 97d00bcdee merge revision(s) 35249,35250: [Backport #6296]
* include/ruby/win32.h (rb_w32_aspawn_flags): add the declaration of
	  new function.

	* process.c (enum): add EXEC_OPTION_PGROUP and move the position
	  above for the usage in proc_spawn_n().

	* process.c (proc_spawn_n): add an argument to pass new option
	  `new_pgroup`. The option specifies CREATE_NEW_PROCESS_GROUP flag to
	  CreateProcessW(). This flag is necessary for the usage of
	  Process.kill on the subprocess on Windows.

	* process.c (rb_exec_arg_addopt): ditto.

	* process.c (rb_spawn_process): ditto.

	* process.c (documentation for rb_f_spawn): add documentation for new
	  option `new_pgroup` of spawn.

	* test/ruby/test_process.rb (TestProcess#test_execopts_new_pgroup):
	  add tests for option `new_pgroup`.

	* test/ruby/test_thread.rb
	  (TestThreadGroup#test_thread_timer_and_interrupt):
	  add option `new_pgroup: true` to spawn on Windows. It's needed for
	  Process.kill on a subprocess.

	* win32/win32.c (CreateChild): add an argument to pass
	  dwCreationFlags of CreateProcessW().

	* win32/win32.c (rb_w32_spawn): ditto.

	* win32/win32.c (rb_w32_aspawn_flags): add new function to pass
	  dwCreationFlags.

	* win32/win32.c (rb_w32_aspawn): refactor to move the content to
	  rb_w32_aspawn_flags().
	  [ruby-core:43245][Bug #6131]

	* test/ruby/test_thread.rb
	  (TestThreadGroup#test_thread_timer_and_interrupt): skip on Windows.
	  Process.kill cannot kill a subprocess if CREATE_NEW_PROCESS_GROUP
	  flag is not specified in a call to CreateProcessW().

	* win32/win32.c (CreateChild): revert the usage of
	  CREATE_NEW_PROCESS_GROUP flag for compatibility.
	  [ruby-core:43245][Bug #6131]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-04-14 21:47:27 +00:00
..
backward * include/ruby/backward/classext.h: for evil gems. fixed #4803 2011-06-18 03:05:11 +00:00
defines.h merge revision(s) %s: 33757:33758 2012-01-03 10:12:07 +00:00
encoding.h merge revision(s) 33937: [Backport #5704] 2012-02-10 18:24:25 +00:00
intern.h * string.c (rb_str_modify_expand): fix memory leak. 2012-02-08 13:30:04 +00:00
io.h * thread.c (rb_wait_for_single_fd): new. poll(2) based backend for rb_wait_for_single_fd(). 2011-05-04 01:07:03 +00:00
missing.h merge revision(s) 32715: 2011-07-28 00:33:14 +00:00
oniguruma.h * include/ruby/oniguruma.h (ONIGENC_CTYPE_SPECIAL_MASK): 2010-10-28 11:07:25 +00:00
re.h * configure.in (XCFLAGS): use -fvisibility=hidden if possible. 2010-07-21 21:38:25 +00:00
regex.h * configure.in (XCFLAGS): use -fvisibility=hidden if possible. 2010-07-21 21:38:25 +00:00
ruby.h merge revision(s) 34786,34787,34788,34789: 2012-02-25 12:32:19 +00:00
st.h * include/ruby/st.h: parenthesize macro arguments. 2011-04-12 11:54:28 +00:00
subst.h * include/ruby/subst.h (snprintf): redefinition moved from ruby.h. 2010-08-07 22:19:17 +00:00
util.h * include/ruby/util.h: parenthesize macro arguments. 2011-04-09 09:02:03 +00:00
version.h * include/ruby/version.h (RUBY_API_VERSION_*): renamed and moved 2010-08-23 21:08:19 +00:00
vm.h * vm.c (ruby_vm_at_exit): new API. This enables extension libs to 2010-12-02 11:06:32 +00:00
win32.h merge revision(s) 35249,35250: [Backport #6296] 2012-04-14 21:47:27 +00:00