Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263516AbTEDGAw (ORCPT ); Sun, 4 May 2003 02:00:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263518AbTEDGAw (ORCPT ); Sun, 4 May 2003 02:00:52 -0400 Received: from iole.cs.brandeis.edu ([129.64.3.240]:50829 "EHLO iole.cs.brandeis.edu") by vger.kernel.org with ESMTP id S263516AbTEDGAv (ORCPT ); Sun, 4 May 2003 02:00:51 -0400 Date: Sun, 4 May 2003 02:13:25 -0400 (EDT) From: Mikhail Kruk To: Subject: fcntl file locking and pthreads Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 626 Lines: 16 Hi, on 2.4 kernels fcntl-based file locking does not work with clone-based threads as expected (by me): two threads of the same process can acquire exclusive lock on a file at the same time. flock()-based locks work as expected, i.e. only one thread can have an exclusive lock at a time. What would it take to make fcntl work as flock? Please cc me, I'm not subscribed. Thanks - 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/