[Gambas-user] New experimental feature : "remote" debugging
Jussi Lahtinen
jussi.lahtinen at gmail.com
Wed Oct 20 23:29:57 CEST 2021
> During remote debugging, the debugged process is watched by looking at
> its entry in the '/proc' directory, to detect its end.
>
> This is not reliable and Linux specific. Apparently there is no reliable
> solution on Unix to detect the end of a process that is not a child
> process.
>
You can make it reliable (if the problem was the possibility of a new
process taking the same PID), if you can look inside of /proc/<PID>/status
(or alternatively stat).
There the first line is the name of the process and it offers other
identification methods also. Stat has start time somewhere...
Jussi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20211021/cda44c36/attachment.htm>
More information about the User
mailing list