Not quite...
git-svn-id: file:///home/svn/framework3/trunk@5313 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
a9294fe2cd
commit
6494e494eb
22
msfgui
22
msfgui
|
@ -81,18 +81,20 @@ if(not debug)
|
||||||
fake = FakeOut.new
|
fake = FakeOut.new
|
||||||
$stdout = fake
|
$stdout = fake
|
||||||
$stderr = fake
|
$stderr = fake
|
||||||
|
|
||||||
if(Rex::Compat.is_windows)
|
|
||||||
nul = Rex::Compat.win32_dev_null()
|
|
||||||
Rex::Compat.win32_set_std_handle('stdout', nul)
|
|
||||||
Rex::Compat.win32_set_std_handle('stderr', nul)
|
|
||||||
Rex::Compat.win32_set_std_handle('stdin', nul)
|
|
||||||
|
|
||||||
# The following will crash rubyw.exe without the above code
|
|
||||||
GLib::Log.log("Gtk", GLib::Log::LEVEL_CRITICAL, "gtk + rubyw problems > /dev/null")
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
if(Rex::Compat.is_windows)
|
||||||
|
nul = Rex::Compat.win32_dev_null()
|
||||||
|
Rex::Compat.win32_set_std_handle('stdout', nul)
|
||||||
|
Rex::Compat.win32_set_std_handle('stderr', nul)
|
||||||
|
Rex::Compat.win32_set_std_handle('stdin', nul)
|
||||||
|
|
||||||
|
# The following will crash rubyw.exe without the above code
|
||||||
|
GLib::Log.log("Gtk", GLib::Log::LEVEL_CRITICAL, "gtk + rubyw problems > /dev/null")
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
$stderr.puts "[*] Debugging mode is enabled"
|
$stderr.puts "[*] Debugging mode is enabled"
|
||||||
|
|
||||||
# Language is English
|
# Language is English
|
||||||
|
|
Loading…
Reference in New Issue