http://bugzilla.suse.com/show_bug.cgi?id=943757
http://bugzilla.suse.com/show_bug.cgi?id=943757#c3
Martin Vidner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |CONFIRMED
--- Comment #3 from Martin Vidner ---
To reproduce:
# /usr/lib/YaST2/bin/y2base ./hello.rb ncurses
# https://bugzilla.suse.com/show_bug.cgi?id=943757
require "yast"
include Yast::UIShortcuts
$stderr.puts "Hello, stderr! 1" # This succeeds
module Yast
import "UI"
UI.OpenDialog(PushButton("Hello, World!"))
$stderr.puts "Hello, stderr! 2" # Bad file descriptor @ io_write
UI.UserInput
UI.CloseDialog
end
I thought that we did redirect to the log, but it turns out that since 2008
ncurses redirects stdout and stderr to /dev/null, even with some suspicious
flags (defaulting to O_RDONLY) which may never have worked:
https://github.com/libyui/libyui-ncurses/blob/8f861f5ccb77a72fdcc17e909f2811...
open( log.c_str(), O_APPEND | O_CREAT, 0666 );
--
You are receiving this mail because:
You are on the CC list for the bug.