[Gambas-user] New experimental feature : "remote" debugging

Jussi Lahtinen jussi.lahtinen at gmail.com
Wed Oct 20 23:50:41 CEST 2021


Value 22 in /proc/<PID>/stat is the starttime (value 2 is the name).

Jussi

On Thu, Oct 21, 2021 at 12:29 AM Jussi Lahtinen <jussi.lahtinen at gmail.com>
wrote:

>
> 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/1c10d342/attachment.htm>


More information about the User mailing list