Results 1 to 4 of 4

Thread: How to clear Bad File Descriptor error

  1. #1
    Join Date
    Mar 2009

    How to clear Bad File Descriptor error

    I am running multi threaded files on my Linux System. The application here writes many small files over the NFS mount. It also continously return a failure code i.e. errorno, EBADF. I does not have any idea about this. Everything seems here to work fine on every client. At first I thought that fd was getting some issue here. Then I changed the code to fflush(). But still the error returns. Does anyone has idea about this. Thanks.

  2. #2
    Join Date
    Apr 2008

    Re: How to clear Bad File Descriptor error

    EBADF is a Bad File Descriptor error. Here the errors comes under this conditions. First if the file descriptor passed to syscall which is out of range or it is closed. Also if it is a invalid for the function which was requested. It is normally termed as a programming bug. I will recommend you to first check the file descriptor which must be set to -1.

  3. #3
    Join Date
    Nov 2005

    Re: How to clear Bad File Descriptor error

    The problem is often occurred absence of MySQL or any other database client which is not placed on your Linux machine. If you here using InstantRails on your system then that might be the cause. To fix the same again download the database and install the same on your computer. Also try to reinstall Ruby back. Choose custom install and modify the list of features.

  4. #4
    Join Date
    May 2008

    Re: How to clear Bad File Descriptor error

    The most proper way for this will be strace. Use strace -ff xterm in the newly open xterm and then exit it. It will be much better to do "strace -eopen,close -ff xterm". This will give the user a less junk to get through. Better re-install your database back again and get rid of it.

Similar Threads

  1. How to clear file permission in Windows 7
    By Asheshs in forum Operating Systems
    Replies: 4
    Last Post: 29-03-2013, 03:41 PM
  2. how to clear .csv file in vba?
    By Randomly in forum Windows Software
    Replies: 3
    Last Post: 04-01-2012, 08:05 PM
  3. Replies: 6
    Last Post: 22-12-2011, 08:28 AM
  4. Bad file descriptor error on uTorrent
    By Joel5 in forum Windows Software
    Replies: 5
    Last Post: 25-06-2010, 12:11 PM
  5. Replies: 5
    Last Post: 15-05-2007, 08:31 AM

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Page generated in 1,653,079,354.31543 seconds with 17 queries