diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2008-06-03 12:38:00 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2008-06-03 12:38:00 +0000 |
| commit | 5db88944ac928baa55b208a1261a1a75af43f921 (patch) | |
| tree | 84d9f628bcd87796e7d7c99f2f06ad3e7b9d5d8b /sys/kern/tty_tty.c | |
| parent | 4e95375678574798d60ce3e03ebbb163ec35d3a5 (diff) | |
Notes
Diffstat (limited to 'sys/kern/tty_tty.c')
| -rw-r--r-- | sys/kern/tty_tty.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/kern/tty_tty.c b/sys/kern/tty_tty.c index f54434724356..040080a1d64b 100644 --- a/sys/kern/tty_tty.c +++ b/sys/kern/tty_tty.c @@ -43,7 +43,6 @@ static struct cdevsw ctty_cdevsw = { .d_version = D_VERSION, .d_open = cttyopen, .d_name = "ctty", - .d_flags = D_TTY | D_NEEDGIANT, }; static struct cdev *ctty; @@ -65,7 +64,6 @@ ctty_clone(void *arg, struct ucred *cred, char *name, int namelen, if (strcmp(name, "tty")) return; sx_sunlock(&clone_drain_lock); - mtx_lock(&Giant); sx_slock(&proctree_lock); sx_slock(&clone_drain_lock); dev_lock(); @@ -82,7 +80,6 @@ ctty_clone(void *arg, struct ucred *cred, char *name, int namelen, dev_refl(*dev); dev_unlock(); sx_sunlock(&proctree_lock); - mtx_unlock(&Giant); } static void |
