Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750806AbVJ0ONt (ORCPT ); Thu, 27 Oct 2005 10:13:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750798AbVJ0ONt (ORCPT ); Thu, 27 Oct 2005 10:13:49 -0400 Received: from main.gmane.org ([80.91.229.2]:9360 "EHLO ciao.gmane.org") by vger.kernel.org with ESMTP id S1750806AbVJ0ONs (ORCPT ); Thu, 27 Oct 2005 10:13:48 -0400 X-Injected-Via-Gmane: http://gmane.org/ To: linux-kernel@vger.kernel.org From: Neal Becker Subject: can/should inotify support fcntl? Date: Thu, 27 Oct 2005 10:07:41 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: nat-expu-253-207.hns.com User-Agent: KNode/0.9.2 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 563 Lines: 7 I'm trying to wrap inotify functionality for python. I ran into a problem. In order to use python's select on the fd, I need to use python's os.fdopen. It seems os.fdopen calls: fcntl(4, F_GETFL) = -1 EBADF (Bad file descriptor) Looks like inotify doesn't support calling fcntl. Should it? - 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/