Find the answer to your Linux question:
Results 1 to 3 of 3
There is any why to close\delete a file descriptor\socket of a process that is running? thanks....
  1. #1
    Just Joined!
    Join Date
    Jan 2008
    Posts
    28

    How to delete file descriptor outside the process?

    There is any why to close\delete a file descriptor\socket of a process that is running?

    thanks.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Why? These are resources that belong to the process in question and should not be manipulated in this fashion. If you terminate the process, its resources, including open file descriptors, will be returned to the operating system, closing the files in question.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Jan 2008
    Posts
    28

    There is any way to do it out side the process?

    Quote Originally Posted by Rubberman View Post
    Why? These are resources that belong to the process in question and should not be manipulated in this fashion. If you terminate the process, its resources, including open file descriptors, will be returned to the operating system, closing the files in question.
    BUT if I want to do it out side the process without killing the process.
    there is any why to do it?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...