Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263840AbUFFRVF (ORCPT ); Sun, 6 Jun 2004 13:21:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263847AbUFFRVF (ORCPT ); Sun, 6 Jun 2004 13:21:05 -0400 Received: from mail-ext.curl.com ([66.228.88.132]:29702 "HELO mail-ext.curl.com") by vger.kernel.org with SMTP id S263840AbUFFRUx (ORCPT ); Sun, 6 Jun 2004 13:20:53 -0400 From: "Patrick J. LoPresti" Message-ID: To: "Paul Rolland" Cc: linux-kernel@vger.kernel.org Subject: Re: clone() <-> getpid() bug in 2.6? In-Reply-To: <200406061307.i56D7pX26872@tag.witbe.net> References: <200406061307.i56D7pX26872@tag.witbe.net> Date: 06 Jun 2004 13:20:49 -0400 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 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: 1478 Lines: 37 "Paul Rolland" writes: > Hello, > > > It does that for the unique filenames and id stamps > > (maildir format and > > I though this was a job for mktemp and co. Sure, if you want to create a unique filename on a local unshared disk. But suppose you want a unique filename on a partition which might be NFS-mounted with multiple concurrent writers. Oh, and the year is 1997. Still want to use mktemp? Bernstein decided to name each file: