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/port/devproc.c | |
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/port/devproc.c')
-rw-r--r-- | sys/src/9/port/devproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/devproc.c b/sys/src/9/port/devproc.c index 16cff7d8e..f963c779d 100644 --- a/sys/src/9/port/devproc.c +++ b/sys/src/9/port/devproc.c @@ -439,7 +439,7 @@ procopen(Chan *c, int omode) pg = p->pgrp; if(pg == nil) error(Eprocdied); - if(omode!=OWRITE || pg->pgrpid == 1) + if(omode!=OWRITE) error(Eperm); c->pgrpid.path = pg->pgrpid+1; c->pgrpid.vers = p->noteid; |