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:
hjk
2021-05-05 15:40:43 +02:00
parent 768787fc86
commit 6f53022a11
3 changed files with 7 additions and 47 deletions

View File

@@ -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
}