How to close rogue file descriptors?

From: Kyndig (kyndig_at_unixpowered.org)
Date: 09/09/03

  • Next message: dpm: "Compile error: wrong machine type"
    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?


  • Next message: dpm: "Compile error: wrong machine type"

    Relevant Pages

    • Re: WAYLTL - Feb 2009
      ... impressive, but the Dies Irea sounds rushed, almost as if the conductor ... makes a better impression on me the second and third time around. ... Hmm, are Davis I and Barenboim noticeably more expansive than Bernstein, ...
      (rec.music.classical.recordings)
    • Re: OT,: Occupational safety
      ... >Bruce wrote: ... >> I don't think they are trying to give the impression that the job is overly ... >Anyone who dies in the act of producing anything, ... The only thing which makes police and fire worker ...
      (rec.outdoors.rv-travel)
    • Re: ptrace equivalents between freebsd and linux?
      ... its communication channel. ... dies with an error realted to ptrace. ... linux PTRACE_ATTACH and PTRACE_DETACH are equilavent to ...
      (freebsd-hackers)
    • Re: [kde-linux] This site blows up in Konqueror
      ... It's completely W3C-valid and works fine in IE, Firefox, Opera on WinXP ... and Linux. ... Dies in Konqueror. ...
      (KDE)
    • Backing Up and Copying XP Files
      ... I'm by no means an XP expert (Linux mostly) so this may be trivial. ... frequent occassions where I have to copy and existing system to and external ... drag and drop the directory, but somewhere in there, there are a couple of ... something and the copy dies. ...
      (microsoft.public.windowsxp.general)