Re: tty or script(1) weirdness?

[ Available lists | Index of freebsd-hackers | Month of Mar 2010 | Week of 10 Mar 2010 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Ed Schouten <ed@80386.nl>
Date
10 Mar 2010 18:41:53
Subject
Re: tty or script(1) weirdness?
Message-ID
20100310184152.GF8200@hoeg.nl

In reply to
References to
Replies
Referenced by

[ Hide this part ]
Hi Alfred,

* Alfred Perlstein <alfred@freebsd.org> wrote:
> 1) download the suite.
> 2) run "sh test.sh" to see the bug
> 3) run "sh test.sh yes" to not see the bug (sleep called)

Hmmm... It seems this is a TTY bug. When you close a TTY, the final
close() call should get stuck until all data is actually drained. This
doesn't seem to happen properly.

You can easily test this by performing a tcdrain() right after running
your perl script:

#include <termios.h>

| int
| main(int argc, char *argv[])
| {
|
| tcdrain(0);
| }

I'll see what I can do.

--
Ed Schouten <ed@80386.nl>
WWW: http://80386.nl/


[ Show this part (application/pgp-signature) ]

Elapsed time: 0.135 seconds