Browse Source

* Changed signature of TForkEvent

git-svn-id: trunk@26752 -
michael 11 years ago
parent
commit
dafd3c3934

+ 1 - 1
packages/fcl-process/src/process.pp

@@ -42,7 +42,7 @@ Type
 
 
 Type
 Type
   {$ifdef UNIX}
   {$ifdef UNIX}
-  TProcessForkEvent = procedure;
+  TProcessForkEvent = procedure(Sender : TObject) of object;
   {$endif UNIX}
   {$endif UNIX}
 
 
   { TProcess }
   { TProcess }

+ 1 - 1
packages/fcl-process/src/unix/process.inc

@@ -394,7 +394,7 @@ begin
                 safefpdup2(fd,2);
                 safefpdup2(fd,2);
               end;
               end;
             if Assigned(FForkEvent) then
             if Assigned(FForkEvent) then
-              FForkEvent;
+              FForkEvent(Self);
             if (poRunSuspended in Options) then
             if (poRunSuspended in Options) then
               sigraise(SIGSTOP);
               sigraise(SIGSTOP);
             if FEnv<>Nil then
             if FEnv<>Nil then