(2004)
Thanks. I was confused for a bit, given these days you can do
echo "-1000" > /proc/<pid>/oom_score_adj
https://github.com/torvalds/linux/blob/master/include/uapi/l...
There's also /proc/sys/vm/panic_on_oom and /proc/sys/vm/oom_kill_allocating_task for other behaviours suggested in the comments.