summaryrefslogtreecommitdiff
path: root/rc/bin
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-08-22 10:03:15 +0200
committercinap_lenrek <cinap_lenrek@localhost>2011-08-22 10:03:15 +0200
commit0e5148b26942b1c60b942f3f2ac550464af9e787 (patch)
treef49f5470ff86df3c912601beba18f97a41a7479d /rc/bin
parente61553c52c6192b5eaea754bd559c657ffdb024f (diff)
improve swap
Diffstat (limited to 'rc/bin')
-rwxr-xr-xrc/bin/cpurc2
-rwxr-xr-xrc/bin/dontkill2
-rwxr-xr-xrc/bin/termrc2
3 files changed, 3 insertions, 3 deletions
diff --git a/rc/bin/cpurc b/rc/bin/cpurc
index 61cc32e4a..25f6cf431 100755
--- a/rc/bin/cpurc
+++ b/rc/bin/cpurc
@@ -76,4 +76,4 @@ if(test -e /cfg/$sysname/cpustart)
# mode of /proc/*/ctl is inherited across rfork, and sets modes on
# other /proc files, such as note, so let listen be killed.
-dontkill '^(ipconfig|factotum|mntgen|venti|kfs|cwfs.*|cs|dns|reboot)$'
+dontkill '^(ipconfig|factotum|mntgen|venti|kfs|cwfs.*|cs|dns|reboot|usbd|disk)$'
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}
diff --git a/rc/bin/termrc b/rc/bin/termrc
index 96430b033..8af723a8f 100755
--- a/rc/bin/termrc
+++ b/rc/bin/termrc
@@ -103,4 +103,4 @@ rm -f '/env/fn#ask'
if(test -f /dev/apm)
aux/apm
-dontkill '^(ipconfig|factotum|mntgen|kfs|cwfs.*|cs|dns|listen|reboot)$'
+dontkill '^(ipconfig|factotum|mntgen|kfs|cwfs.*|cs|dns|listen|reboot|usbd|disk)$'