When a executable file is run in a process, if the executable file is overwritten or deleted and then recreated by reinstallation, will the process rerun the new executable file?
Does the answer to the question depend on
whether the executable is run as a service/daemon in the process or not?
the operation system, e.g. Linux, Unix, ...?
whether the reinstallation is from an installer file (e.g.
deb
file on Ubuntu,msi
on Windows) or from building its source code?
Here are some examples:
In Ubuntu, when a process runs an executable file, and when I overwrite the executable file, by manually reinstallation via
configure
,make
, andmake install
on its source code, the process still continues to run the original executable file, instead of the new executable file.I heard that in Windwos 10, when a process runs an executable file as a service, if we reinstall the executable file via its
msi
installer file, then the service process will restart to run the new executable file. Is it the same or similar case for installation from .deb files on Ubuntu or Debian?
Thanks.