Date: Wed, 10 Mar 2010 19:41:52 +0100 From: Ed Schouten <ed@80386.nl> To: Alfred Perlstein <alfred@freebsd.org> Cc: FreeBSD Hackers <hackers@freebsd.org> Subject: Re: tty or script(1) weirdness? Message-ID: <20100310184152.GF8200@hoeg.nl> In-Reply-To: <20100310093001.GL22317@elvis.mu.org> References: <20100310093001.GL22317@elvis.mu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--PyVBLkVRa/gQBUbw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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[]) | { |=20 | tcdrain(0); | } I'll see what I can do. --=20 Ed Schouten <ed@80386.nl> WWW: http://80386.nl/ --PyVBLkVRa/gQBUbw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkuX5/AACgkQ52SDGA2eCwWA8gCfSTlqSQfoE0fK0kL35xTscdVD FWsAn0OvE3D8r03afpO4ddVhcdip4+DJ =esZ+ -----END PGP SIGNATURE----- --PyVBLkVRa/gQBUbw--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100310184152.GF8200>