forked from qt-creator/qt-creator
Utils: Merge TerminalControllingProcess into QtcProcess
Effectively only a single flag controlling a call to setsid(). Change-Id: I6a2be35df1bddc81702575678ee3a065a71cecf5 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -1270,6 +1270,10 @@ void QtcProcess::setupChildProcess_impl()
|
||||
if (::nice(5) == -1 && errno != 0)
|
||||
perror("Failed to set nice value");
|
||||
}
|
||||
|
||||
// Disable terminal by becoming a session leader.
|
||||
if (m_disableUnixTerminal)
|
||||
setsid();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user