]> git.ipfire.org Git - thirdparty/libtool.git/commit
* ltmain.in: create on-demand executable as $progdir/$$-$program,
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Mon, 22 Feb 1999 20:47:30 +0000 (20:47 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Mon, 22 Feb 1999 20:47:30 +0000 (20:47 +0000)
commit231f7fd15f9696e97c48b91e2b847648cab87e09
tree6895e18b0c303abaa1effc7be813c184d3a90aa5
parent40e8332d439213a31fb721bb5244891e283fb542
* ltmain.in: create on-demand executable as $progdir/$$-$program,
and rename it to $progdir/$program only when it's finished, to
avoid race conditions.  We can still get the program linked
multiple times, if multiple instances are started simultaneously
and the program does not exist, but they are very unlikely to
interfere with each other.  There's still a possibility that one
process removes the $program another has just created, and doesn't
replace it before the other tries to run it, in a system whose
`mv' is not atomic, so it will $rm then $mv, but so what? :-)
Locking files have been avoided to prevent dead-locks in case they
are left over after a reboot or crash.
ChangeLog
ltmain.in