[fpc-pascal] [SYSTEM] Linux <defunct> processes when execute external program by a thread
Michael Van Canneyt
michael.vancanneyt at wisa.be
Wed Nov 22 09:03:06 CET 2006
On Tue, 21 Nov 2006, Marco van de Voort wrote:
>
> > this external program kill itself by calling halt() function at the end
> > of the code.
> > My problem is that each execution of this program will add <defunc> in
> > the Linux system :
> >
> > Please how to clean theses "defunct" on the system...??????????????
>
> Don't use execl but sysutils.executeprocess.
>
> (fp)execl is an internal function that requires a lot of special
> borderconditions, one of it being called after a fork, and another that the
> mainprogram must wait for it.
ExecProcess waits for the child process to exit.
This does not help him, as I assume the process needs to run asynchronously ?
Michael.
More information about the fpc-pascal
mailing list