lkml.org 
[lkml]   [1996]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: behavior of overwriting running executables?
From
Date
> I wanted behavior to unlink the file when linking since I have problems:
> 1) when I'm setuiding a program I'm working on (I normally have to
> rm in the makefile
> 2) when I'm leaving the binary running (normally a mistake).
> I want the link to proceed without a problem (linux reports
> "text file busy"
>
>
> This seems correct and I don't see harm...
>
> Comments? You want to put it in?

Naeh, bad practice, and would not work at non-GNU-utils systems
anyway. (Think about your average SysV machine..)

I do:

install ... /path/to/target.x && mv /path/to/target.x /path/to/target

which happens to work at all systems I have used.
Similarly at object linkage I use target name with .x suffix,
and then " && mv NN.x NN".
...
> marty
> leisner@sdsp.mc.xerox.com
> Member of the League for Programming Freedom

/Matti Aarnio <mea@utu.fi>


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