Re: behavior of overwriting running executables?

Herbert Rosmanith (herp@wildsau.idv.uni-linz.ac.at)
Thu, 16 May 1996 03:40:11 +0200 (MET DST)


>
>
> On Wed, 15 May 1996, Marty Leisner wrote:
>
> > If I write to a running program, I get "text file busy".
> >
> > I think sunos seamlessly moves the executable to an unnamed inode, leaving a reference to
> > it while its running, then transparently does an unlink when its done.
>
> SGI's Irix allows the program to be overwritten, but causes the running
> program to core-dump !

fyi,

with linux, I noticed that you always can do
"rm <orig.program>; cp <your.program> <orig.progam>"
and never see any crashes.

/herp