[fpc-devel] TProcess.Terminate

Michael Van Canneyt michael at freepascal.org
Fri Oct 5 09:19:01 CEST 2007



On Thu, 4 Oct 2007, Micha Nelissen wrote:

> Hi,
> 
> On unix TProcess.Terminate will send a TERM signal, if this succeeds it
> will poll if it exited, and immediately send a KILL signal if not. Isn't
> this a bit rigorous ? It may not have had a change to run even, let
> alone terminate properly.
> 
> Also, it calls GetExitStatus.
> 
> Perhaps there should be distinction between 'ask to terminate' and 'kill
> now' ?

It's modelled on Windows. There terminate doesn't ask questions.
Hence the implementation.

Michael.



More information about the fpc-devel mailing list