IDE: cut handles when starting applications

git-svn-id: trunk@43391 -
This commit is contained in:
mattias 2013-11-07 12:52:03 +00:00
parent 96e13eb9d4
commit 4cc7a3f380
3 changed files with 3 additions and 0 deletions

View File

@ -404,6 +404,7 @@ constructor TLazarusProcess.Create(const LazarusPath: string;
const CommandLine: string; EnvOverrides: TStringList);
begin
FProcess := TProcessUTF8.Create(nil);
FProcess.InheritHandles := false;
FProcess.Options := [];
FProcess.ShowWindow := swoShow;
FProcess.CommandLine := LazarusPath + CommandLine;

View File

@ -7376,6 +7376,7 @@ const
begin
StartLazProcess := TProcessUTF8.Create(nil);
try
StartLazProcess.InheritHandles:=false;
// use the same working directory as the IDE, so that all relative file
// names in parameters still work
StartLazProcess.CurrentDirectory := ParamBaseDirectory;

View File

@ -367,6 +367,7 @@ begin
try
BrowserProcess:=TProcessUTF8.Create(nil);
try
BrowserProcess.InheritHandles:=false;
BrowserProcess.CommandLine:=CommandLine;
BrowserProcess.Execute;
finally