Not quite...

git-svn-id: file:///home/svn/framework3/trunk@5313 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2008-01-22 05:03:18 +00:00
parent a9294fe2cd
commit 6494e494eb
1 changed files with 12 additions and 10 deletions

22
msfgui
View File

@ -81,18 +81,20 @@ if(not debug)
fake = FakeOut.new
$stdout = 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
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"
# Language is English