2 # dontkill regexp - mark invoker's processes with names matching regexp
3 # as not killable when the kernel runs out of memory
8 # see /sys/src/9/port/proc.c:/^killbig
9 psu | awk '$NF ~ /'$1'/ {
10 print "@{echo noswap >/proc/"$2"/ctl}"
11 }' | rc >/dev/null >[2=1]