🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.hp.hpux
Article #77

Re: Softbench/C++ 'text file busy' erase error

#77
From: Karl Klashinsky
Date: Tue, 22 Feb 1994 14:55
27 lines
2068 bytes
The executable may not be running on your host, it might be running on
another host in your cluster.  You're going to have to do a "ps -ef"
on every host on your cluster.  Yech.

A "hack" solution is to modify your Makefile to try to mv the
executable to one side, then remove it.  Of course, the problem there
is that the second time you try to do the mv, it may still fail.
Fortunately, Make and sh gives us techniques to kludge around HP's
idiosyncrasies (of which there are far too many).  Try making your
"target" line look something like this:

target: deps
	-sh -c "mv $@ $@.$$$$; rm -f $@.$$$$;"
	# You're regular cc or CC or whatever here.

What this does is have the shell attempt to mv your target to a name
of the form "target.pid", then attempt to rm target.pid.  The "-" at
the beginning of the sh line tells make to ignore the result of the
command, so failure to remove the target.pid will not abort your
compile.

This can still break, however, since pid numbers are recycled.  Should
get around your problem >90% of the time, however.
--
Karl Klashinsky                          Bell-Northern Research, Ltd.
INTERNET:  klash@bnr.ca                  Ottawa, Ont, Canada
Technical Details
Message-ID: <KLASH.94Feb22095519@bcars658.bnr.ca>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!netnews.upenn.edu!msuinfo!uwm.edu!math.ohio-state.edu!cs.utexas.edu!convex!news.utdallas.edu!corpgate!bnrgate!bcars664!leibniz!klash
References: <1994Feb21.142913.18126@bcarh54a.bnr.ca>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcda7,dc0ffc520030ec1c
X-Google-Attributes: gidfcda7,public
X-Google-Thread: 14b500,dc0ffc520030ec1c
X-Google-Attributes: gid14b500,public
X-Google-ArrivalTime: 1994-02-22 06:55:19 PST
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!netnews.upenn.edu!msuinfo!uwm.edu!math.ohio-state.edu!cs.utexas.edu!convex!news.utdallas.edu!corpgate!bnrgate!bcars664!leibniz!klash
From: klash@bcars658.bnr.ca (Karl Klashinsky)
Newsgroups: comp.sys.hp.hpux,bnr.unix
Subject: Re: Softbench/C++ 'text file busy' erase error
Message-ID: <KLASH.94Feb22095519@bcars658.bnr.ca>
Date: 22 Feb 94 14:55:19 GMT
References: <1994Feb21.142913.18126@bcarh54a.bnr.ca>
Sender: news@bcars664.bnr.ca
Organization: Bell-Northern Research, Ltd.
Lines: 27
In-reply-to: coghlan@bcarh5f8.bnr.ca's message of 21 Feb 94 14:29:13 GMT