|
@@ -41,6 +41,10 @@ Type
|
|
|
|
|
|
|
|
|
|
Type
|
|
Type
|
|
|
|
+ {$ifdef UNIX}
|
|
|
|
+ TProcessForkEvent = procedure;
|
|
|
|
+ {$endif UNIX}
|
|
|
|
+
|
|
TProcess = Class (TComponent)
|
|
TProcess = Class (TComponent)
|
|
Private
|
|
Private
|
|
FProcessOptions : TProcessOptions;
|
|
FProcessOptions : TProcessOptions;
|
|
@@ -58,6 +62,9 @@ Type
|
|
FEnvironment : Tstrings;
|
|
FEnvironment : Tstrings;
|
|
FShowWindow : TShowWindowOptions;
|
|
FShowWindow : TShowWindowOptions;
|
|
FInherithandles : Boolean;
|
|
FInherithandles : Boolean;
|
|
|
|
+ {$ifdef UNIX}
|
|
|
|
+ FForkEvent : TProcessForkEvent;
|
|
|
|
+ {$endif UNIX}
|
|
FProcessPriority : TProcessPriority;
|
|
FProcessPriority : TProcessPriority;
|
|
dwXCountchars,
|
|
dwXCountchars,
|
|
dwXSize,
|
|
dwXSize,
|
|
@@ -113,6 +120,9 @@ Type
|
|
Property Stderr : TinputPipeStream Read FStderrStream;
|
|
Property Stderr : TinputPipeStream Read FStderrStream;
|
|
Property ExitStatus : Integer Read GetExitStatus;
|
|
Property ExitStatus : Integer Read GetExitStatus;
|
|
Property InheritHandles : Boolean Read FInheritHandles Write FInheritHandles;
|
|
Property InheritHandles : Boolean Read FInheritHandles Write FInheritHandles;
|
|
|
|
+ {$ifdef UNIX}
|
|
|
|
+ property OnForkEvent : TProcessForkEvent Read FForkEvent Write FForkEvent;
|
|
|
|
+ {$endif UNIX}
|
|
Published
|
|
Published
|
|
Property Active : Boolean Read GetRunning Write SetActive;
|
|
Property Active : Boolean Read GetRunning Write SetActive;
|
|
Property ApplicationName : String Read FApplicationName Write SetApplicationName;
|
|
Property ApplicationName : String Read FApplicationName Write SetApplicationName;
|
|
@@ -163,6 +173,9 @@ begin
|
|
FProcessPriority:=ppNormal;
|
|
FProcessPriority:=ppNormal;
|
|
FShowWindow:=swoNone;
|
|
FShowWindow:=swoNone;
|
|
FInheritHandles:=True;
|
|
FInheritHandles:=True;
|
|
|
|
+ {$ifdef UNIX}
|
|
|
|
+ FForkEvent:=nil;
|
|
|
|
+ {$endif UNIX}
|
|
FEnvironment:=TStringList.Create;
|
|
FEnvironment:=TStringList.Create;
|
|
end;
|
|
end;
|
|
|
|
|