Project

General

Profile

Bug #2510

xsystem fails in 1.9/mingw

Added by rogerdpack (Roger Pack) over 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
ruby -v:
ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-mingw32]
[ruby-core:27273]

Description

=begin
In 1.8

xsystem("ls")
within an extconf.rb

works fine
in 1.9.2, same

with 1.9.1, it always fails.
Thanks.
-r
=end


Related issues

Has duplicate Backport191 - Bug #2549: Redirected stdout don't work on child process on WindowsClosed01/03/2010Actions

Associated revisions

Revision 27449
Added by usa (Usaku NAKAMURA) over 9 years ago

  • win32/win32.c (rb_w32_wopen): shouldn't use FILE_FLAG_OVERLAPPED with normal file. #1807, #2510, #2549

Revision 27449
Added by usa (Usaku NAKAMURA) over 9 years ago

  • win32/win32.c (rb_w32_wopen): shouldn't use FILE_FLAG_OVERLAPPED with normal file. #1807, #2510, #2549

Revision 27449
Added by usa (Usaku NAKAMURA) over 9 years ago

  • win32/win32.c (rb_w32_wopen): shouldn't use FILE_FLAG_OVERLAPPED with normal file. #1807, #2510, #2549

Revision 27449
Added by usa (Usaku NAKAMURA) over 9 years ago

  • win32/win32.c (rb_w32_wopen): shouldn't use FILE_FLAG_OVERLAPPED with normal file. #1807, #2510, #2549

Revision 27449
Added by usa (Usaku NAKAMURA) over 9 years ago

  • win32/win32.c (rb_w32_wopen): shouldn't use FILE_FLAG_OVERLAPPED with normal file. #1807, #2510, #2549

Revision 27449
Added by usa (Usaku NAKAMURA) over 9 years ago

  • win32/win32.c (rb_w32_wopen): shouldn't use FILE_FLAG_OVERLAPPED with normal file. #1807, #2510, #2549

History

#1

Updated by usa (Usaku NAKAMURA) over 9 years ago

  • Status changed from Open to Assigned
  • Assignee set to usa (Usaku NAKAMURA)

=begin
Hmm, on my Windows box,

1.9.0-0 : OK
1.9.0-2 : NG
1.9.1-p* : everyone NG
1.9.2 : NG

=end

#2

Updated by usa (Usaku NAKAMURA) over 9 years ago

=begin
additional information:

to invoke native Windows child processes, xsystem returns true,
but there is no output in mkmf.log except the names of invoked
processes.

to invoke cygwin processes, xsystem returns false.

I think that ruby destroys stdout.
And, starting of processes might fail for such case in cygwin.
=end

#3

Updated by usa (Usaku NAKAMURA) over 9 years ago

  • Status changed from Assigned to Closed

=begin
fixed at r27449
=end

Also available in: Atom PDF