(stilloob): check that fds are not too large to select on

(ttloop): remove confusing output of errno


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9107 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-10-08 13:34:27 +00:00
parent 526ba90e4c
commit 265ace2a58

View File

@@ -68,7 +68,7 @@ ttloop(void)
syslog(LOG_INFO, "ttloop: read: %m\n");
exit(1);
} else if (ncc == 0) {
syslog(LOG_INFO, "ttloop: peer died: %m\n");
syslog(LOG_INFO, "ttloop: peer died\n");
exit(1);
}
DIAG(TD_REPORT, {
@@ -93,6 +93,9 @@ stilloob(int s)
fd_set excepts;
int value;
if (s >= FD_SETSIZE)
fatal(ourpty, "fd too large");
do {
FD_ZERO(&excepts);
FD_SET(s, &excepts);