diff options
| author | Victor Kareh <[email protected]> | 2026-06-01 08:52:41 -0400 |
|---|---|---|
| committer | Victor Kareh <[email protected]> | 2026-06-01 09:11:06 -0400 |
| commit | e0ec016444001971af75d236ce4c3ae2d87824d3 (patch) | |
| tree | 093a2d3edb60fac1255309af5e732fe69c3d174e /README | |
| parent | 6c53bde758e6d8944438c2469b8a58209db6d0b2 (diff) | |
| download | mate-session-manager-fix-restart-cpu-spin.tar.bz2 mate-session-manager-fix-restart-cpu-spin.tar.xz | |
app: Add respawn rate limiting to prevent CPU spinningfix-restart-cpu-spin
When a non-client app with AutoRestart enabled exits immediately after
starting, the restart logic would loop without delay, causing high CPU
usage. This adds a 60-second rate limit to gsm_app_restart. If an app
respawns twice within this window, the second restart is rejected.
The code is adapted from:
- https://gitlab.gnome.org/GNOME/gnome-session/-/commit/4df48234
- https://gitlab.gnome.org/GNOME/gnome-session/-/commit/b9aa675e
Fixes #336
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions
