How to close rogue file descriptors?
From: Kyndig (kyndig_at_unixpowered.org)
Date: 09/09/03
- Previous message: Louis Erickson: "Re: open controlling terminal from cron"
- Next in thread: Kamal R. Prasad: "Re: How to close rogue file descriptors?"
- Reply: Kamal R. Prasad: "Re: How to close rogue file descriptors?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 9 Sep 2003 07:34:52 -0700
Let's say a program opens a bunch of file handles and then dies
non-gracefully, leaving this(on a linux box):
bash-2.05$ /sbin/sysctl fs.file-nr
fs.file-nr = 65536 64352 65536
I was under the impression that when a process dies, all descriptors
are freed by the kernel; but I must be wrong. Is there a way to close
all those file descriptors without rebooting?
- Previous message: Louis Erickson: "Re: open controlling terminal from cron"
- Next in thread: Kamal R. Prasad: "Re: How to close rogue file descriptors?"
- Reply: Kamal R. Prasad: "Re: How to close rogue file descriptors?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|