Re: installing replacement binary of a runnging program?
rogalsky wrote:
The truth is, that the core image of the running program would be
retained
by each process using it until the process exits. Meanwhile, the disk
image
would be replaced by the new program, which would be run by any program
calling it. Things get hairy when a shareable dynamically loaded
library
is replaced, though.
>
> What happens if I try to update a package, which contains a command,
> which is currently in use and running?
> Under normal circumstances the file which holds the command is kept open
> and locked during the time the command is running and hence couldn't be
> changed or overwritten. So if I try to install an update for - let's
> say - the bash, which of course is running, I expect that the /bin/bash
> file wouldn't be updated, because it is locked.
> Am I wrong, what is the truth?
>
> Olaf Rogalsky
>
> --
> \\|//
> (. .)
> +-----------------------------oOOo-(_)-oOOo----------------------------+
> I Dipl. Phys. Olaf Rogalsky Institut f. Theo. Physik I I
> I Tel.: 09131 8528440 Univ. Erlangen-Nuernberg I
> I Fax.: 09131 8528444 Staudtstrasse 7 B3 I
> I rogalsky@theorie1.physik.uni-erlangen.de D-91058 Erlangen I
> +----------------------------------------------------------------------+
>
> --
> Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
--
-----------------------------------------
Ralph Winslow rjw@nac.net
The IQ of the group is that of the member
whose IQ is lowest divided by the number
of members.
Reply to: