Skip to content

Commit a790c80

Browse files
heyuanjie87Guozhanxin
authored andcommitted
[pty]修正pty引起waitqueue崩溃的问题
1 parent 704554f commit a790c80

File tree

1 file changed

+0
-5
lines changed
  • components/drivers/tty

1 file changed

+0
-5
lines changed

components/drivers/tty/pty.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,6 @@ static int ptmx_open(struct dfs_file *fd)
183183
struct tty_struct *tty = RT_NULL;
184184
struct tty_struct *pts = RT_NULL;
185185
struct tty_ldisc *ld = RT_NULL;
186-
struct rt_lwp *lwp = RT_NULL;
187-
struct rt_wqueue *wq = RT_NULL;
188186

189187
tty = (struct tty_struct *)fd->vnode->data;
190188
RT_ASSERT(tty != RT_NULL);
@@ -203,9 +201,6 @@ static int ptmx_open(struct dfs_file *fd)
203201
return -1;
204202
}
205203
pts_index++;
206-
lwp = lwp_self();
207-
wq = wait_queue_get(lwp, tty);
208-
pts->wait_queue = *wq;
209204
tty->other_struct = pts;
210205

211206
ld = tty->ldisc;

0 commit comments

Comments
 (0)