summaryrefslogtreecommitdiff
path: root/rc/bin/dontkill
diff options
context:
space:
mode:
Diffstat (limited to 'rc/bin/dontkill')
-rwxr-xr-xrc/bin/dontkill2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/bin/dontkill b/rc/bin/dontkill
index 96203e675..a471aadb8 100755
--- a/rc/bin/dontkill
+++ b/rc/bin/dontkill
@@ -7,4 +7,4 @@ if (! ~ $#* 1) {
}
# see /sys/src/9/port/proc.c:/^killbig
pids=`{psu | awk '$NF ~ /'$1'/ {print $2}'}
-~ $#pids 0 || chmod -w /proc/^$pids^/ctl
+~ $#pids 0 || for(p in /proc/^$pids^/ctl){chmod +w $p; echo noswap >$p; chmod -w $p}