Brian Somers c47cab6191 It turns out that the following:
close(1);
  close(2);
  x = open(ctermid(NULL), O_RDWR|O_NONBLOCK);
  close(0)
on a tty causes select() to return an exception for descriptor x !
This is the case in RELENG_2_2, but not in 2.2.2.  I'm not sure why.
Instead of doing the x=open() and close(0), we just do x=0 now.
Problem pointed out by: Greg Lehey <grog@lemis.com>
                        Tomi Vainio <tomppa@fidata.fi>
1997-09-21 20:26:47 +00:00
..
1997-09-01 06:11:40 +00:00
1997-09-01 06:12:37 +00:00
1997-09-02 06:36:39 +00:00
1997-09-02 06:37:48 +00:00
1997-09-13 16:01:53 +00:00
1997-09-17 06:20:45 +00:00
1997-09-15 06:41:09 +00:00
1997-09-17 06:27:23 +00:00
1997-09-17 06:29:23 +00:00
1997-09-17 06:30:22 +00:00
1997-09-19 06:27:30 +00:00
1997-09-19 06:27:30 +00:00
1997-07-06 07:38:36 +00:00
1997-09-19 06:29:52 +00:00
1997-08-14 10:36:31 +00:00
1997-08-23 16:58:52 +00:00
1997-09-18 06:55:21 +00:00
1997-02-22 16:15:28 +00:00
1997-02-22 16:15:28 +00:00
1997-07-27 23:10:33 +00:00
1997-02-22 16:15:28 +00:00
1997-02-22 16:15:28 +00:00
1997-09-18 06:54:03 +00:00
1997-02-22 16:15:28 +00:00
1997-07-14 19:57:50 +00:00
1997-09-19 15:41:57 +00:00
1997-09-21 20:26:47 +00:00
1997-09-01 09:33:08 +00:00
1997-09-18 06:55:21 +00:00
1997-01-20 00:03:00 +00:00
1997-02-22 16:15:28 +00:00
1997-09-20 06:24:17 +00:00
1997-09-13 16:01:53 +00:00
1997-02-22 16:15:28 +00:00
1997-02-22 16:15:28 +00:00
1997-02-22 16:15:28 +00:00
1997-08-30 02:28:00 +00:00
1997-07-24 23:46:35 +00:00
1997-09-19 16:04:19 +00:00
1997-04-15 07:06:15 +00:00
1997-02-22 16:15:28 +00:00