Path: utzoo!dciem!nrcaer!scs!spl1!laidbak!att!pacbell!lll-tis!helios.ee.lbl.gov!pasteur!ucbvax!agate!eos!labrea!denali!karish From: karish@denali.stanford.edu (Chuck Karish) Newsgroups: comp.unix.questions Subject: Re: Rename bug? Message-ID: <22180@labrea.Stanford.EDU> Date: 2 Jun 88 21:54:10 GMT Article-I.D.: labrea.22180 References: <9312@eddie.MIT.EDU> <467@aiva.ed.ac.uk> <9341@eddie.MIT.EDU> <2144@rpp386.UUCP> <5702@chinet.UUCP> les@chinet.UUCP (Leslie Mikesell) writes: This leaves an interval between unlink("xx") and link("TMP4653","xx") when an attempt to open("xx") will fail. I work with a system that has about 10,000 files on line that are mostly updated daily, some every 10 minutes, and it seems like a real kludge that I had to make the retrieval program attempt open() twice with a sleep() in between to be sure of finding the file. Can it be done otherwise? Why not have each program that uses the shared files lock them while they're in use? If your system doesn't support real locks, an ad hoc advisory locking system would be adequate if the programs were willing to cooperate with one another. Chuck Karish ARPA: karish@denali.stanford.edu BITNET: karish%denali@forsythe.stanford.edu UUCP: {decvax,hplabs!hpda}!mindcrf!karish USPS: 1825 California St. #5 Mountain View, CA 94041