projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] tty: update the tty layer to work with struct pid
[powerpc.git]
/
drivers
/
char
/
n_tty.c
diff --git
a/drivers/char/n_tty.c
b/drivers/char/n_tty.c
index
2bdb014
..
6ac3ca4
100644
(file)
--- a/
drivers/char/n_tty.c
+++ b/
drivers/char/n_tty.c
@@
-579,8
+579,8
@@
static void eraser(unsigned char c, struct tty_struct *tty)
static inline void isig(int sig, struct tty_struct *tty, int flush)
{
static inline void isig(int sig, struct tty_struct *tty, int flush)
{
- if (tty->pgrp
> 0
)
- kill_pg(tty->pgrp, sig, 1);
+ if (tty->pgrp)
+ kill_pg
rp
(tty->pgrp, sig, 1);
if (flush || !L_NOFLSH(tty)) {
n_tty_flush_buffer(tty);
if (tty->driver->flush_buffer)
if (flush || !L_NOFLSH(tty)) {
n_tty_flush_buffer(tty);
if (tty->driver->flush_buffer)
@@
-1184,13
+1184,13
@@
static int job_control(struct tty_struct *tty, struct file *file)
/* don't stop on /dev/console */
if (file->f_op->write != redirected_tty_write &&
current->signal->tty == tty) {
/* don't stop on /dev/console */
if (file->f_op->write != redirected_tty_write &&
current->signal->tty == tty) {
- if (
tty->pgrp <= 0
)
- printk("read_chan:
tty->pgrp <= 0
!\n");
- else if (
process_grou
p(current) != tty->pgrp) {
+ if (
!tty->pgrp
)
+ printk("read_chan:
no tty->pgrp
!\n");
+ else if (
task_pgr
p(current) != tty->pgrp) {
if (is_ignored(SIGTTIN) ||
if (is_ignored(SIGTTIN) ||
- is_
orphaned_pgrp(process_group(current)
))
+ is_
current_pgrp_orphaned(
))
return -EIO;
return -EIO;
- kill_pg
(process_grou
p(current), SIGTTIN, 1);
+ kill_pg
rp(task_pgr
p(current), SIGTTIN, 1);
return -ERESTARTSYS;
}
}
return -ERESTARTSYS;
}
}