1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-02 08:42:48 +00:00

Make script(1) a little less broken.

Close the file descriptor to the TTY. There is no reason why the parent
process should keep track of the descriptor. This ensures that the
application inside properly drains the TTY during exit(2).

Reported by:	alfred
MFC after:	2 weeks
This commit is contained in:
Ed Schouten 2010-03-11 11:09:58 +00:00
parent f0c078e6e0
commit 8d5e4a1416
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=205008

View File

@ -158,6 +158,8 @@ main(int argc, char *argv[])
}
if (child == 0)
doshell(argv);
else
close(slave);
if (flushtime > 0)
tvp = &tv;