Re: 2.6.0-test6-mm3

From: Andrew Morton
Date: Sat Oct 04 2003 - 11:48:17 EST


Rhino <rhino9@xxxxxxxxxxxx> wrote:
>
> got these endless messages :
>
> pid 4220 pgrp 4220 sid 3542 tty 00000000 ENOTTY vs tty f7984000 sid 0
> pid 4221 pgrp 4220 sid 3542 tty 00000000 ENOTTY vs tty f7984000 sid 0
> pid 4219 pgrp 3542 sid 3542 tty 00000000 ENOTTY vs tty f7984000 sid 0

I don't know why that was added actually; maybe it is just left-over
debugging code.

drivers/char/tty_io.c | 13 ++-----------
1 files changed, 2 insertions(+), 11 deletions(-)

diff -puN drivers/char/tty_io.c~job-control-remove-debug drivers/char/tty_io.c
--- 25/drivers/char/tty_io.c~job-control-remove-debug 2003-10-04 09:46:56.000000000 -0700
+++ 25-akpm/drivers/char/tty_io.c 2003-10-04 09:47:21.000000000 -0700
@@ -1591,22 +1591,13 @@ static int tiocspgrp(struct tty_struct *
pid_t pgrp;
int retval = tty_check_change(real_tty);

- if (retval == -EIO) {
- printk(KERN_WARNING "pid %d pgrp %d tty_check_change EIO\n",
- current->pid, current->signal->pgrp);
+ if (retval == -EIO)
return -ENOTTY;
- }
if (retval)
return retval;
if (!process_tty(current) || (process_tty(current) != real_tty) ||
- (real_tty->session != process_session(current))) {
- printk(KERN_WARNING "pid %d pgrp %d sid %d tty %p "
- "ENOTTY vs tty %p sid %d\n",
- current->pid, process_group(current),
- process_session(current), process_tty(current),
- real_tty, real_tty->session);
+ (real_tty->session != process_session(current)))
return -ENOTTY;
- }
if (get_user(pgrp, (pid_t *) arg))
return -EFAULT;
if (pgrp < 0)

_

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/