summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ff92a9b)
FD_SETSIZE, using the value of getdtablesize() as an input to select()
does not work. We fixed this in our RPC code a while back. Here's a
patch to make window(1) work more correctly.
From: Charles Hannum <mycroft@NetBSD.ORG>
SCCS-vsn: usr.bin/window/wwinit.c 8.2
SCCS-vsn: usr.bin/window/wwopen.c 8.2
-static char sccsid[] = "@(#)wwinit.c 8.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)wwinit.c 8.2 (Berkeley) %G%";
#endif /* not lint */
#include "ww.h"
#endif /* not lint */
#include "ww.h"
- wwdtablesize = getdtablesize();
wwhead.ww_forw = &wwhead;
wwhead.ww_back = &wwhead;
wwhead.ww_forw = &wwhead;
wwhead.ww_back = &wwhead;
-static char sccsid[] = "@(#)wwopen.c 8.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)wwopen.c 8.2 (Berkeley) %G%";
#endif /* not lint */
#include "ww.h"
#endif /* not lint */
#include "ww.h"
}
w->ww_obe = w->ww_ob + 512;
w->ww_obp = w->ww_obq = w->ww_ob;
}
w->ww_obe = w->ww_ob + 512;
w->ww_obp = w->ww_obq = w->ww_ob;
+ if (w->ww_pty >= wwdtablesize)
+ wwdtablesize = w->ww_pty + 1;
}
w->ww_win = wwalloc(w->ww_w.t, w->ww_w.l,
}
w->ww_win = wwalloc(w->ww_w.t, w->ww_w.l,