Messages in this thread | | | Date | Thu, 14 Mar 2019 20:45:02 -0700 | From | Sultan Alsawaf <> | Subject | Re: [RFC] simple_lmk: Introduce Simple Low Memory Killer for Android |
| |
On Thu, Mar 14, 2019 at 11:16:41PM -0400, Steven Rostedt wrote: > How would you implement such a method in userspace? kill() doesn't take > any parameters but the pid of the process you want to send a signal to, > and the signal to send. This would require a new system call, and be > quite a bit of work. If you can solve this with an ebpf program, I > strongly suggest you do that instead.
This can be done by introducing a new signal number that provides SIGKILL functionality while blocking (maybe SIGKILLBLOCK?).
Thanks, Sultan
| |