On Windows you cannot delete loaded dynamic/shared libraries, how to make same thing happen on Linux [on...











up vote
0
down vote

favorite












On Windows, I run my executable and I do



rm *.dll


Then the dynamic libraries loaded by my executable cannot be deleted, only the ones not loaded can be deleted.





However as you might know, on Linux, after running my executable, running



rm *.so*


deletes all shared libraries regardless of the fact that some of them might be loaded by my executable.





Considering such a scenario, how can I make Linux behave like Windows!?










share|improve this question













put on hold as unclear what you're asking by Rui F Ribeiro, JigglyNaga, Kiwy, jimmij, Mr Shunz yesterday


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.











  • 6




    Why is this a problem? What issue are you trying to solve? The fact that Windows prevents deletions of open files IMO makes system administration HARDER because you can't upgrade without doing unnecessary reboots.or restarts of processes. "Delete libxyz.so, put a new copy in place" works just fine on Linux to upgrade libxyz.so.
    – Andrew Henle
    yesterday

















up vote
0
down vote

favorite












On Windows, I run my executable and I do



rm *.dll


Then the dynamic libraries loaded by my executable cannot be deleted, only the ones not loaded can be deleted.





However as you might know, on Linux, after running my executable, running



rm *.so*


deletes all shared libraries regardless of the fact that some of them might be loaded by my executable.





Considering such a scenario, how can I make Linux behave like Windows!?










share|improve this question













put on hold as unclear what you're asking by Rui F Ribeiro, JigglyNaga, Kiwy, jimmij, Mr Shunz yesterday


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.











  • 6




    Why is this a problem? What issue are you trying to solve? The fact that Windows prevents deletions of open files IMO makes system administration HARDER because you can't upgrade without doing unnecessary reboots.or restarts of processes. "Delete libxyz.so, put a new copy in place" works just fine on Linux to upgrade libxyz.so.
    – Andrew Henle
    yesterday















up vote
0
down vote

favorite









up vote
0
down vote

favorite











On Windows, I run my executable and I do



rm *.dll


Then the dynamic libraries loaded by my executable cannot be deleted, only the ones not loaded can be deleted.





However as you might know, on Linux, after running my executable, running



rm *.so*


deletes all shared libraries regardless of the fact that some of them might be loaded by my executable.





Considering such a scenario, how can I make Linux behave like Windows!?










share|improve this question













On Windows, I run my executable and I do



rm *.dll


Then the dynamic libraries loaded by my executable cannot be deleted, only the ones not loaded can be deleted.





However as you might know, on Linux, after running my executable, running



rm *.so*


deletes all shared libraries regardless of the fact that some of them might be loaded by my executable.





Considering such a scenario, how can I make Linux behave like Windows!?







rm dynamic-linking shared-folders






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked yesterday









user3405291

730418




730418




put on hold as unclear what you're asking by Rui F Ribeiro, JigglyNaga, Kiwy, jimmij, Mr Shunz yesterday


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.






put on hold as unclear what you're asking by Rui F Ribeiro, JigglyNaga, Kiwy, jimmij, Mr Shunz yesterday


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.










  • 6




    Why is this a problem? What issue are you trying to solve? The fact that Windows prevents deletions of open files IMO makes system administration HARDER because you can't upgrade without doing unnecessary reboots.or restarts of processes. "Delete libxyz.so, put a new copy in place" works just fine on Linux to upgrade libxyz.so.
    – Andrew Henle
    yesterday
















  • 6




    Why is this a problem? What issue are you trying to solve? The fact that Windows prevents deletions of open files IMO makes system administration HARDER because you can't upgrade without doing unnecessary reboots.or restarts of processes. "Delete libxyz.so, put a new copy in place" works just fine on Linux to upgrade libxyz.so.
    – Andrew Henle
    yesterday










6




6




Why is this a problem? What issue are you trying to solve? The fact that Windows prevents deletions of open files IMO makes system administration HARDER because you can't upgrade without doing unnecessary reboots.or restarts of processes. "Delete libxyz.so, put a new copy in place" works just fine on Linux to upgrade libxyz.so.
– Andrew Henle
yesterday






Why is this a problem? What issue are you trying to solve? The fact that Windows prevents deletions of open files IMO makes system administration HARDER because you can't upgrade without doing unnecessary reboots.or restarts of processes. "Delete libxyz.so, put a new copy in place" works just fine on Linux to upgrade libxyz.so.
– Andrew Henle
yesterday

















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Accessing regular linux commands in Huawei's Dopra Linux

Can't connect RFCOMM socket: Host is down

Kernel panic - not syncing: Fatal Exception in Interrupt