Browse Source

* proper support for ExecInheritsHandles in Flags

git-svn-id: trunk@19368 -
Tomas Hajny 14 years ago
parent
commit
49a7b48fe0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      rtl/os2/sysutils.pp

+ 2 - 1
rtl/os2/sysutils.pp

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