- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- running application directory removed
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2007 05:34 PM
06-13-2007 05:34 PM
If an application is running and directory containing by it is removed by mistake by someone then will it become a zombie process ?
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2007 05:54 PM
06-13-2007 05:54 PM
Re: running application directory removed
Of course if that directory is on the server and the application is being run over NFS, you may be able to remove it. But you may get .nfs files that prevent the removal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2007 07:22 AM
06-16-2007 07:22 AM
Re: running application directory removed
Thanks,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2007 09:15 AM
06-16-2007 09:15 AM
SolutionIf you are referring to an inuse, executable file, then as Dennis has noted, you should not be able to remove the file. Trying to do so should return a "text busy" error for the file. Attempting to remove the directory housing the inuse, executable file should be denied, too, because (at least) one file in the directory can't be removed.
Removing a file or directory referenced by a a running process will not cause the process to become a zombie. At most, processes that do not already have files open will not be able to access the file(s) in question.
A zombie process is only a remanent of a child process that has terminated but for whom its parent process has not (yet) "reaped" ['wait()'ed] to collect the child's exit status.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2007 09:33 AM
06-16-2007 09:33 AM
Re: running application directory removed
The only way a process becomes a zombie is when the process terminates and its parent process does not read its child's result code (by calling wait() on the child's PID number).
As long as the application does not need to read anything from the removed files and the OS has no need to page in any code from the application binaries, the application can keep running just as before.
The OS will protect the application binary and the associated libraries from deletion, unless NFS is involved. With NFS, this protection cannot be absolute. If there is no way to page in data from the binary or the libraries whenever it's needed, the program will certainly crash.
Whenever you see zombie processes, look at the parent process (PPID) of the zombie: that process is not allowing the zombie to go its final rest, and needs to be fixed. The quick way to get rid of the zombies is to "kill that evil zombie master".
MK