MFC r205008 and 205009:

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
This commit is contained in:
Ed Schouten 2010-03-25 08:33:56 +00:00
parent 934f51ed85
commit 4ae65fe952

View File

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