processes: Fix 'delay_rate' race condition
authorPavel Rochnyack <pavel2000@ngs.ru>
Wed, 19 Dec 2018 12:57:04 +0000 (19:57 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Wed, 19 Dec 2018 12:57:04 +0000 (19:57 +0700)
commitc5e7240d111bacb9c398c44a5f9825782970e59d
treea8451097d05fd9238f59acb0d2ea20b85f714962
parent664d6e935be3de4ab2a23df8bdebe07d60c21273
processes: Fix 'delay_rate' race condition

When ts_delay_by_tgid() failed (for example, when observable process
terminates), `ps->delay` fields are not updated and remain set to zero.

This interpreted as counter overflow and produces spike.

Issue: #3026
src/processes.c