Submitted by: John Hay

Ok, I shouldn't have said it was the last one previously. :-))

This fix a stupid bug in the select code.

John
This commit is contained in:
Julian Elischer 1995-12-09 09:42:03 +00:00
parent 4d92e19833
commit fcc69d1196
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12692

View File

@ -35,7 +35,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: main.c,v 1.1 1995/10/26 21:28:19 julian Exp $
* $Id: main.c,v 1.2 1995/10/27 10:48:28 julian Exp $
*/
#ifndef lint
@ -227,10 +227,10 @@ main(argc, argv)
if(select(nfds, &fdvar, (fd_set *)NULL, (fd_set *)NULL,
(struct timeval *)NULL) < 0) {
if(errno != EINTR) {
perror("during select");
exit(1);
}
if(errno == EINTR)
continue;
perror("during select");
exit(1);
}
if(FD_ISSET(ripsock, &fdvar))