[Gambas-user] New experimental feature : "remote" debugging
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).
On Thu, Oct 21, 2021 at 12:29 AM Jussi Lahtinen <jussi.lahtinen at gmail.com>
> 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
> 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...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User