QProcess: add docs that the PID from startDetached() may be recycled

Change-Id: I209fcd5dbc2b4e5381cffffd14de2742eb1d8cd7
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Thiago Macieira 2017-08-25 10:34:53 -07:00
parent d61e61fa1a
commit 9f5aec777a

View File

@ -2121,8 +2121,12 @@ void QProcess::start(OpenMode mode)
\note On QNX, this may cause all application threads to
temporarily freeze.
If the function is successful then *\a pid is set to the process
identifier of the started process.
If the function is successful then *\a pid is set to the process identifier
of the started process. Note that the child process may exit and the PID
may become invalid without notice. Furthermore, after the child process
exits, the same PID may be recycled and used by a completely different
process. User code should be careful when using this variable, especially
if one intends to forcibly terminate the process by operating system means.
Only the following property setters are supported by startDetached():
\list