From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965076AbVHZPZ4 (ORCPT ); Fri, 26 Aug 2005 11:25:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965077AbVHZPZ4 (ORCPT ); Fri, 26 Aug 2005 11:25:56 -0400 Received: from wproxy.gmail.com ([64.233.184.199]:23668 "EHLO wproxy.gmail.com") by vger.kernel.org with ESMTP id S965076AbVHZPZz convert rfc822-to-8bit (ORCPT ); Fri, 26 Aug 2005 11:25:55 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=bNZW8ZAn/3bFyLtCtvSUaBY6kyCzKwE3wrAuUPDnxisuOe20ZuUDZeIUffCJwrMjXrgOgxc8z3ycQ6RfsWdJKnq8H70LhZGiunkiEHKn4hiYhJ6VTqS32uGm8a0nVd5GUzlNmwTogQ49LSq+/Frl27/lTOCUbNKdGKPxq8R0EwM= Message-ID: <54315475050826082547323146@mail.gmail.com> Date: Fri, 26 Aug 2005 17:25:48 +0200 From: Gereon Steffens To: linux-kernel@vger.kernel.org Subject: poll() returns EINVAL Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi, under what appears to me as weird circumstances, poll() returns EINVAL where I belive it shouldn't. Here's an example program that demonstrates the problem both on kernel 2.4 and 2.6 machines: #include #include #include #include #include #define MAX 1025 #define MOD 250 int main(int argc, char**argv) { struct pollfd pfd[MAX] = { { 0 } }; int i, rc; for (i=0; i