diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2007-02-12 03:53:00 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-12 12:48:32 -0500 |
commit | ab521dc0f8e117fd808d3e425216864d60390500 (patch) | |
tree | f9d6449c4d8c9508fd43edfe845108043e1536b2 /arch | |
parent | 3e7cd6c413c9e6fbb5e1ee2acdadb4ababd2d474 (diff) |
[PATCH] tty: update the tty layer to work with struct pid
Of kernel subsystems that work with pids the tty layer is probably the largest
consumer. But it has the nice virtue that the assiation with a session only
lasts until the session leader exits. Which means that no reference counting
is required. So using struct pid winds up being a simple optimization to
avoid hash table lookups.
In the long term the use of pid_nr also ensures that when we have multiple pid
spaces mixed everything will work correctly.
Signed-off-by: Eric W. Biederman <eric@maxwell.lnxi.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/um/drivers/line.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/drivers/line.c b/arch/um/drivers/line.c index 0e1e9a20a4d6..01d4ab6b0ef1 100644 --- a/arch/um/drivers/line.c +++ b/arch/um/drivers/line.c | |||
@@ -774,7 +774,7 @@ static irqreturn_t winch_interrupt(int irq, void *data) | |||
774 | line = tty->driver_data; | 774 | line = tty->driver_data; |
775 | chan_window_size(&line->chan_list, &tty->winsize.ws_row, | 775 | chan_window_size(&line->chan_list, &tty->winsize.ws_row, |
776 | &tty->winsize.ws_col); | 776 | &tty->winsize.ws_col); |
777 | kill_pg(tty->pgrp, SIGWINCH, 1); | 777 | kill_pgrp(tty->pgrp, SIGWINCH, 1); |
778 | } | 778 | } |
779 | out: | 779 | out: |
780 | if(winch->fd != -1) | 780 | if(winch->fd != -1) |