summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_pty.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1999-11-21 02:54:54 +0000
committerjkh <jkh@FreeBSD.org>1999-11-21 02:54:54 +0000
commitbdad2b18b405a0a3245e73849d17fa0d11e7c382 (patch)
tree96d2bc5c9f8be9d16ca1f8670445a780feb0d89a /sys/kern/tty_pty.c
parent6cd5c97e1cb3234801b4d2257e84743611e9d885 (diff)
downloadFreeBSD-src-bdad2b18b405a0a3245e73849d17fa0d11e7c382.zip
FreeBSD-src-bdad2b18b405a0a3245e73849d17fa0d11e7c382.tar.gz
Revert peter's commit to remove cdevsw_add() - it was a bit premature
since things fail to function properly without it (pty allocation becomes somewhat haphazard).
Diffstat (limited to 'sys/kern/tty_pty.c')
-rw-r--r--sys/kern/tty_pty.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c
index 0db85f3..539ee0b 100644
--- a/sys/kern/tty_pty.c
+++ b/sys/kern/tty_pty.c
@@ -813,6 +813,8 @@ static void
ptc_drvinit(unused)
void *unused;
{
+ cdevsw_add(&pts_cdevsw);
+ cdevsw_add(&ptc_cdevsw);
/* XXX: Gross hack for DEVFS */
ptyinit(0);
}
OpenPOWER on IntegriCloud