{"push_id":867282487,"size":1,"distinct_size":1,"ref":"refs/heads/5.6.x","head":"f5b120aa5cf0c8a282db7fba61ec29c2f454878f","before":"8b08dcae0ecea3273c0a0b388d2db462c0077f70","commits":[{"sha":"f5b120aa5cf0c8a282db7fba61ec29c2f454878f","author":{"email":"6235427b05b2662d5c7620b5c00112860d481e88@datadoghq.com","name":"Quentin Madec"},"message":"[core] improve detection of agent process from pid\n\nSometimes the agent fails to restart after a \"hard\" reboot because the pidfile\ncontains the pid of a non-datadog running process, and the only check the agent\ndid before this commit was to check if the pid was associated with a running\nprocess.\n\nThis commit implements a new function `is_my_process` which verifies on Linux if the\n`psutil.Process.cmdline` (\"command line this process has been called with\") is\nthe good one (corresponding to the current executable). This function is used\ninstead of `pid_exists` when `psutil` is installed and checks the pid contained\nin the pidfile, thus solving the above-mentioned problem.","distinct":true,"url":"https://api.github.com/repos/DataDog/dd-agent/commits/f5b120aa5cf0c8a282db7fba61ec29c2f454878f"}]}