[Gambas-user] Ending processes after killing a gambas program

José Luis Redrejo jredrejo at ...626...
Fri Nov 9 16:17:01 CET 2007


2007/11/9, Daniel Campos <dcamposf at ...626...>:
>
> PUBLIC SUB _free()
>     TRY EXEC["kill","-9",pro.Id]
> END
>

It does not work, as _free is not executed when exiting from a gnome
session, or when you just kill the gambas application.

On the other hand, I've checked that using SHELL , the child process has 1
as PPID, so init is his parent and will not die when the gambas application
ends, but using EXEC, the child process has the gambas application as its
PPID. But killing it or exiting from gnome changes it to 1, instead of kill
the children of the application,
so is there any way to avoid this?



More information about the User mailing list