mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 17:52:43 +00:00
MFC r260833:
Bring back r226403, the fix for bin/161526, which was (accidentally?) reverted in r238896. PR: bin/161526 Reported by: Karli.Sjoberg slu.se
This commit is contained in:
parent
8dd90b0d8b
commit
6d2a5a36ec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=260924
@ -235,12 +235,15 @@ main(int argc, char *argv[])
|
||||
FD_SET(master, &rfd);
|
||||
if (readstdin)
|
||||
FD_SET(STDIN_FILENO, &rfd);
|
||||
if ((!readstdin && ttyflg) || flushtime > 0) {
|
||||
tv.tv_sec = !readstdin && ttyflg ? 1 :
|
||||
flushtime - (tvec - start);
|
||||
if (!readstdin && ttyflg) {
|
||||
tv.tv_sec = 1;
|
||||
tv.tv_usec = 0;
|
||||
tvp = &tv;
|
||||
readstdin = 1;
|
||||
} else if (flushtime > 0) {
|
||||
tv.tv_sec = flushtime - (tvec - start);
|
||||
tv.tv_usec = 0;
|
||||
tvp = &tv;
|
||||
} else {
|
||||
tvp = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user