[comp.sys.sgi] Text file busy

jit@SLIC.CELLBIO.DUKE.EDU (Jit Keong Tan) (06/24/91)

ld:
Can't create output file (Text file busy)
ld: Usage: ld [options] file [...]
*** Error code 1

Stop.

How does ld knows that a target file is busy ?
This is a nice feature.  Is there something in the system that
keeps the information ?

Thanks.

--------------------------------------------------------
Jit Keong Tan   |  Internet: jit@slic.cellbio.duke.edu
(919) 684-8098  |  Bitnet:   tan00001@dukemc
--------------------------------------------------------
Duke University Medical Center
Dept. Of Cell Biology, Box 3709
Nanaline Duke Bldg, Rm. 349
Durham, NC 27710

**************************************************************
In limbo ! Alive ! CIO: able Errors ! unix: gfx: no keyboard ! 
NOTICE: SCSI tape #2 had 9 recoverable Errors
**************************************************************

HERBER@FNALA.FNAL.GOV ("Randolph J. Herber, CD/DCD/SP, x2966") (06/24/91)

'ld' creat()'s the new text file.  One of the possible errors is errno 26 --
ETXTBSY.  The reason for this limitation is that some versions of UNIX
(reg.tm-USL) operating system page or swap directly from the executable.
Therefore, modification of the executable must be prevented.

Randy Herber, herber@fnalf.fnal.gov

tasos@BU-PUB.BU.EDU (06/24/91)

Locks.