[net.bugs.4bsd] Minor tset bug

mcdaniel@uiuccsb.UUCP (12/04/83)

#N:uiuccsb:6300004:000:409
uiuccsb!mcdaniel    Dec  4 00:35:00 1983

/***** uiuccsb:problems / emrath / 11:04 pm  Dec  3, 1983 */
I found a very minor bug in tset.

tset assumes that stderr is the file connected
to the terminal that is to be set up.
If stderr is not a terminal, then tset tries to write
an error msg to stderr.  However, tset exits prematurely.

Between lines 405 & 406 of tset.c:
		prs("Not a terminal\n");
		exit(1);
add the line:
		flush();
/* ---------- */