Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 17 Mar 2003 13:17:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 17 Mar 2003 13:17:14 -0500 Received: from quechua.inka.de ([193.197.184.2]:42716 "EHLO mail.inka.de") by vger.kernel.org with ESMTP id ; Mon, 17 Mar 2003 13:16:14 -0500 To: linux-kernel@vger.kernel.org Subject: Re: select() stress References: Organization: private Linux site, southern Germany Date: Mon, 17 Mar 2003 19:24:58 +0100 From: Olaf Titz Message-Id: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 632 Lines: 15 > select() takes a file-descriptor as its first argument, not the > return-value of some function that returns the number of file- > descriptors. You cannot assume that this number is the same > as the currently open socket. Just use the socket-value. That's ^ plus one (yes, I made that mistake more than enough times...) Olaf - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/