diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-01-12 08:30:27 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-01-12 08:30:27 +0000 |
| commit | 214371458eac93a18d000bc60d3a2ffb08520a4c (patch) | |
| tree | 06b6628e79e0cc17955ed2779ece6a85a311feaf /input.c | |
| parent | term: remove client application’s pid from reaper when shutting down (diff) | |
reaper: remove child from list *before* calling the user provided callback
The user provided callback may call reaper_del(), in which case we
will crash when we also try to remove the child from the list.
Remove it from the list before the callback means reaper_del() (if
called by the callback) will just loop through the entire list without
finding the pid and thus do nothing.
Diffstat (limited to 'input.c')
0 files changed, 0 insertions, 0 deletions
