diff options
author | cinap_lenrek <cinap_lenrek@localhost> | 2011-08-22 10:03:15 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@localhost> | 2011-08-22 10:03:15 +0200 |
commit | 0e5148b26942b1c60b942f3f2ac550464af9e787 (patch) | |
tree | f49f5470ff86df3c912601beba18f97a41a7479d /rc/bin | |
parent | e61553c52c6192b5eaea754bd559c657ffdb024f (diff) |
improve swap
Diffstat (limited to 'rc/bin')
-rwxr-xr-x | rc/bin/cpurc | 2 | ||||
-rwxr-xr-x | rc/bin/dontkill | 2 | ||||
-rwxr-xr-x | rc/bin/termrc | 2 |
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)$' |