Hastening process cleanup with process_mrelease()
Hastening process cleanup with process_mrelease()
Posted Jul 30, 2021 14:03 UTC (Fri) by brauner (subscriber, #109349)In reply to: Hastening process cleanup with process_mrelease() by josh
Parent article: Hastening process cleanup with process_mrelease()
> This doesn't seem like it needs a completely separate syscall. pidfd_send_signal takes flags, and a "reap process memory immediately" flag seems like it would fit well there.
In one of the first iterations this has been a flag to pidfd_send_signal() but I really disliked it. I get why it feels appealing but how memory is released has nothing to do with signaling imho. It's better suited as a separate API where it can also be extended in the future.