process_stub_unix: fix race condition with reading of env file
process_stub_unix: fix race condition with reading of env file

The stub incorrectly send its pid before reading the environment file,
and qtcreator does interpret that as sign that it can delete the
environment file.

Task-number: QTCREATORBUG-9024
Change-Id: Id44777abdfdd94aa10815cb00ca27846b95a3ec7
Reviewed-by: Oswald Buddenhagen <6a8868beda3e139b5ac22b2534a23d3e6ba81819@digia.com>

darksylinc/qt-creator,xianian/qt-creator,xianian/qt-creator,omniacreator/qtcreator,danimo/qt-creator,farseerri/git_code,omniacreator/qtcreator,maui-packages/qt-creator,farseerri/git_code,martyone/sailfish-qtcreator,amyvmiwei/qt-creator,colede/qtcreator,colede/qtcreator,xianian/qt-creator,malikcjm/qtcreator,Distrotech/qtcreator,maui-packages/qt-creator,martyone/sailfish-qtcreator,AltarBeastiful/qt-creator,danimo/qt-creator,colede/qtcreator,colede/qtcreator,malikcjm/qtcreator,richardmg/qtcreator,AltarBeastiful/qt-creator,xianian/qt-creator,xianian/qt-creator,amyvmiwei/qt-creator,danimo/qt-creator,maui-packages/qt-creator,kuba1/qtcreator,darksylinc/qt-creator,kuba1/qtcreator,xianian/qt-creator,richardmg/qtcreator,maui-packages/qt-creator,kuba1/qtcreator,richardmg/qtcreator,kuba1/qtcreator,kuba1/qtcreator,danimo/qt-creator,darksylinc/qt-creator,Distrotech/qtcreator,martyone/sailfish-qtcreator,martyone/sailfish-qtcreator,omniacreator/qtcreator,AltarBeastiful/qt-creator,martyone/sailfish-qtcreator,Distrotech/qtcreator,malikcjm/qtcreator,amyvmiwei/qt-creator,maui-packages/qt-creator,martyone/sailfish-qtcreator,malikcjm/qtcreator,amyvmiwei/qt-creator,AltarBeastiful/qt-creator,amyvmiwei/qt-creator,Distrotech/qtcreator,richardmg/qtcreator,danimo/qt-creator,AltarBeastiful/qt-creator,xianian/qt-creator,AltarBeastiful/qt-creator,farseerri/git_code,xianian/qt-creator,danimo/qt-creator,richardmg/qtcreator,malikcjm/qtcreator,AltarBeastiful/qt-creator,martyone/sailfish-qtcreator,martyone/sailfish-qtcreator,danimo/qt-creator,kuba1/qtcreator,kuba1/qtcreator,omniacreator/qtcreator,omniacreator/qtcreator,maui-packages/qt-creator,Distrotech/qtcreator,richardmg/qtcreator,richardmg/qtcreator,darksylinc/qt-creator,darksylinc/qt-creator,Distrotech/qtcreator,kuba1/qtcreator,colede/qtcreator,AltarBeastiful/qt-creator,colede/qtcreator,farseerri/git_code,farseerri/git_code,danimo/qt-creator,amyvmiwei/qt-creator,farseerri/git_code,darksylinc/qt-creator,farseerri/git_code,martyone/sailfish-qtcreator,malikcjm/qtcreator,maui-packages/qt-creator,darksylinc/qt-creator,Distrotech/qtcreator,malikcjm/qtcreator,farseerri/git_code,omniacreator/qtcreator,kuba1/qtcreator,xianian/qt-creator,omniacreator/qtcreator,darksylinc/qt-creator,amyvmiwei/qt-creator,amyvmiwei/qt-creator,colede/qtcreator,danimo/qt-creator