From owner-freebsd-questions@FreeBSD.ORG Wed Apr 6 02:12:01 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E49016A4CE for ; Wed, 6 Apr 2005 02:12:01 +0000 (GMT) Received: from plewe.is.tsukuba.ac.jp (plewe.cs.tsukuba.ac.jp [130.158.81.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B10F43D3F for ; Wed, 6 Apr 2005 02:12:00 +0000 (GMT) (envelope-from till@plewe.is.tsukuba.ac.jp) Received: from plewe.is.tsukuba.ac.jp (localhost [127.0.0.1]) j362LGQL099442 for ; Wed, 6 Apr 2005 11:21:16 +0900 (JST) (envelope-from till@plewe.is.tsukuba.ac.jp) Received: (from till@localhost) by plewe.is.tsukuba.ac.jp (8.13.1/8.13.1/Submit) id j362LGlN099441 for freebsd-questions@freebsd.org; Wed, 6 Apr 2005 11:21:16 +0900 (JST) (envelope-from till) Date: Wed, 6 Apr 2005 11:21:16 +0900 From: Till Plewe To: freebsd-questions@freebsd.org Message-ID: <20050406022116.GB99381%till@score.is.tsukuba.ac.jp> Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: flockfile does not work with stdout (on X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: till@score.is.tsukuba.ac.jp List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Apr 2005 02:12:01 -0000 How can I control the output of processes (forked from a single process) all writing to the same file? f{un,}lockfile(file) seems to work unless file=stdout. Are there any other simple methods I can try? - Till PS. I am using 5.4-PRERELEASE i386 SMP-GENERIC