From owner-freebsd-isp Wed Jan 27 23:56:10 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA03424 for freebsd-isp-outgoing; Wed, 27 Jan 1999 23:56:10 -0800 (PST) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from dns.hgs.com.cn ([202.96.210.159]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA03419 for ; Wed, 27 Jan 1999 23:56:08 -0800 (PST) (envelope-from xiyuan@dns.hgs.com.cn) Received: (from xiyuan@localhost) by dns.hgs.com.cn (8.8.7/8.8.7) id PAA01443 for freebsd-isp@freebsd.org; Thu, 28 Jan 1999 15:52:52 +0800 (CST) (envelope-from xiyuan) Date: Thu, 28 Jan 1999 15:52:52 +0800 (CST) From: xiyuan qian Message-Id: <199901280752.PAA01443@dns.hgs.com.cn> To: freebsd-isp@FreeBSD.ORG Subject: Must I lock the file? Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, there is a process running on my box which will open and write a file. Now, I run another program to write some data to this file. Must I first lock the file? Is there any method to append it without problem? With fopen( ,"a+") will work? Best regaurds! --xiyuan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message