Slicer: 2145-support-for-installing-extension-from-file 6006d2e2

Author Committer Branch Timestamp Parent
jcfr jcfr 2145-support-for-installing-extension-from-file 2013-09-23 04:26:27 2145-support-for-installing-extension-from-file f9b31cd1
Affected Issues 0002535: slicer can hang after restart due to full output buffer
Changeset

BUG: Fix crash after Slicer is restarted and text printed on stdout/stderr

Revert commit r22400 "BUG: Disable AutoRestart to workaround issue 0002535"

After restarting Slicer, message were still printed on stdout/stderr.
The associated descriptors didn't have any "consumers". It was
then causing Slicer to be unresponsive.

By introducing a new command line option "--disable-terminal-outputs",
it allows to disable the display of message on the terminal. This new
option is pre-pended to the list of arguments on Slicer restart. That
was the restarted Slicer instance is not associated with any
stderr/stdout file descriptor.

Note that on windows, in the case Slicer is built without console support,
the new command line option won't be available.

Fixes 0002535

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22472 3bd1e089-480b-0410-8dfb-8563597acbee

mod - Base/QTCore/qSlicerCoreApplication.cxx Diff File
mod - Base/QTCore/qSlicerCoreCommandOptions.cxx Diff File
mod - Base/QTCore/qSlicerCoreCommandOptions.h Diff File
mod - Base/QTGUI/qSlicerApplication.cxx Diff File
mod - Base/QTGUI/qSlicerSettingsGeneralPanel.cxx Diff File