[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug#755295: Hurd term server (was: Hurd GCC ping)
From: |
Samuel Thibault |
Subject: |
Re: Bug#755295: Hurd term server (was: Hurd GCC ping) |
Date: |
Sun, 18 Jan 2015 20:38:29 +0100 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Thomas Schwinge, le Sun 18 Jan 2015 17:34:00 +0100, a écrit :
> (Can you now reproduce the issue?)
Yes.
> Any comments on that already? (I don't feel like
> committing such a change without understanding it.)
>
> --- term/ptyio.c
> +++ term/ptyio.c
> @@ -331,7 +331,7 @@ pty_io_read (struct trivfs_protid *cred,
> }
> }
>
> - if (!(termflags & TTY_OPEN) && !qsize (outputq))
> + if (!(termflags & TTY_OPEN) && packet_mode)
> {
> pthread_mutex_unlock (&global_lock);
> return EIO;
I don't see why it should be done in packet mode only. The qsize check,
on the other hand, makes sense to me, we should keep it.
Samuel