lkml.org 
[lkml]   [1996]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: behavior of overwriting running executables?
Date
Marty Leisner wrote:
>
>
> This is has always been an issue with linux kernels.
>
> 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.
>
> Opinions/comments?


You can remove/unlink a running program. Then linux
seamlessly moves the executable to an unnamed inode, leaving a reference to
it while its running, then transparently does an unlink when its done.

... but you cannot write to the program file before you do the remove/unlink.

I think ld should do an unlink before it trys to write to the output file.

/Tom
--
---------------------------------------------------------------
Tom Bjorkholm MYDATA automation AB
tel: +46 8 629 09 00 Karlsbodavagen 39
fax: +46 8 629 09 09 S-161 70 Bromma, Sweden


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.073 / U:1.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site