aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/IPXrouted
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>1995-12-09 09:42:03 +0000
committerJulian Elischer <julian@FreeBSD.org>1995-12-09 09:42:03 +0000
commitfcc69d11969a0f428996743238c92ad8286b2ff5 (patch)
tree46908ea4551f1c947e749bf75a4678e1d2ac9fa5 /usr.sbin/IPXrouted
parent4d92e19833832c97168f61a5f39d9b4da951bbee (diff)
downloadsrc-fcc69d11969a0f428996743238c92ad8286b2ff5.tar.gz
src-fcc69d11969a0f428996743238c92ad8286b2ff5.zip
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
Notes
Notes: svn path=/head/; revision=12692
Diffstat (limited to 'usr.sbin/IPXrouted')
-rw-r--r--usr.sbin/IPXrouted/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/IPXrouted/main.c b/usr.sbin/IPXrouted/main.c
index 4797a6a9478a..2bac1fe9392d 100644
--- a/usr.sbin/IPXrouted/main.c
+++ b/usr.sbin/IPXrouted/main.c
@@ -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))