* proper support for ExecInheritsHandles in Flags

git-svn-id: trunk@19368 -
This commit is contained in:
Tomas Hajny 2011-10-04 22:10:21 +00:00
parent fca1ea8757
commit 49a7b48fe0

View File

@ -678,7 +678,8 @@ begin
SD.PgmName := PChar (CommandLine);
if ComLine <> '' then
SD.PgmInputs := PChar (ComLine);
SD.InheritOpt := ssf_InhertOpt_Parent;
if ExecInheritsHandles in Flags then
SD.InheritOpt := ssf_InhertOpt_Parent;
Str (GetProcessID, SPID);
Str (ThreadID, STID);
QName := '\QUEUES\FPC_ExecuteProcess_p' + SPID + 't' + STID + '.QUE'#0;