]> Zhao Yanbai Git Server - minix.git/commitdiff
select status should return minor device number instead of tty
authorBen Gras <ben@minix3.org>
Tue, 4 Oct 2005 12:04:00 +0000 (12:04 +0000)
committerBen Gras <ben@minix3.org>
Tue, 4 Oct 2005 12:04:00 +0000 (12:04 +0000)
line number

drivers/tty/tty.c

index 4034a0b933ee6ab51972a96d2fddf9ef949745fb..fb957ab992151363501d5100998534e589cce7b8 100644 (file)
@@ -325,7 +325,7 @@ message *m_ptr;
 
                /* I/O for a selected minor device is ready. */
                m_ptr->m_type = DEV_IO_READY;
-               m_ptr->DEV_MINOR = tp->tty_index;
+               m_ptr->DEV_MINOR = tp->tty_minor;
                m_ptr->DEV_SEL_OPS = ops;
 
                tp->tty_select_ops &= ~ops;     /* unmark select event */