summaryrefslogtreecommitdiff
path: root/components/drivers/tty
diff options
context:
space:
mode:
authorheyuanjie87 <[email protected]>2023-06-16 22:14:21 +0800
committerguo <[email protected]>2023-06-19 10:56:06 +0800
commita790c809a8eaf77249e495a27a6d8a7b310b20bb (patch)
treef46de9f95d5156987dcddcdf0ad6a11976b30b44 /components/drivers/tty
parent704554f1f9966ee830907c7674a676e2ea94a29c (diff)
[pty]修正pty引起waitqueue崩溃的问题
Diffstat (limited to 'components/drivers/tty')
-rw-r--r--components/drivers/tty/pty.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/components/drivers/tty/pty.c b/components/drivers/tty/pty.c
index 87ee37b020..89a83096d6 100644
--- a/components/drivers/tty/pty.c
+++ b/components/drivers/tty/pty.c
@@ -183,8 +183,6 @@ static int ptmx_open(struct dfs_file *fd)
struct tty_struct *tty = RT_NULL;
struct tty_struct *pts = RT_NULL;
struct tty_ldisc *ld = RT_NULL;
- struct rt_lwp *lwp = RT_NULL;
- struct rt_wqueue *wq = RT_NULL;
tty = (struct tty_struct *)fd->vnode->data;
RT_ASSERT(tty != RT_NULL);
@@ -203,9 +201,6 @@ static int ptmx_open(struct dfs_file *fd)
return -1;
}
pts_index++;
- lwp = lwp_self();
- wq = wait_queue_get(lwp, tty);
- pts->wait_queue = *wq;
tty->other_struct = pts;
ld = tty->ldisc;