tty or script(1) weirdness?

Ed Schouten ed at 80386.nl
Wed Mar 10 18:41:53 UTC 2010


Hi Alfred,

* Alfred Perlstein <alfred at 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 at 80386.nl>
 WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20100310/7a505907/attachment.pgp


More information about the freebsd-hackers mailing list