diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-11-07 18:57:02 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-11-07 18:57:02 +0100 |
commit | 2c4a77f21fea98bcc1edd0bb69f74cf80060c027 (patch) | |
tree | 00776013a39dd099f705ff8e8f3efd1a2213ed6f /sys/src/9/boot | |
parent | eb96892d857355499a7400381e9186512a7d153f (diff) |
devproc: remove pgrpid == 1 check for notepg open
assuming that this check tried to prevent the hostowner
from killing init, it is silly because init would just
handle the note.
with kbdfs, we actually want to send interrupt note to
the initial process group so instead of working arround
this with rfork(RFNOTEG|RFNAMEG), we remove the check.
Diffstat (limited to 'sys/src/9/boot')
-rw-r--r-- | sys/src/9/boot/bootrc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/src/9/boot/bootrc b/sys/src/9/boot/bootrc index d6c1aa512..e362f815a 100644 --- a/sys/src/9/boot/bootrc +++ b/sys/src/9/boot/bootrc @@ -25,6 +25,10 @@ for(i in `{ls -Qp '#ec'}){ } } +fn sigint { + status=interrupted +} + fn fatal { echo $* exit $"* @@ -154,12 +158,6 @@ fn main{ # keyboard and serial console if(test -x /bin/aux/kbdfs){ - # make new pgrp different from 1 so kbdfs can open notepg - rfork ns - - # ignore interrupts - fn sigint {status=interrupted} - a=$console(1) if(! ~ $#a 0) a=/dev/eia^$a |