Bad File Descriptor

The file descriptor passed to a syscall was out of range, or was not open, or is invalid for the function requested.

This is usually a programming bug, you forgot to call open(2), or socket(2), or something or they returned an error. Check to see if the file descriptor is -1, if it is, then you should check errno for why it failed. see the man pages for open(2) or socket(2) for more information.

Please note that any user can change the contents of pages on this site,
and therefore the Waikato Linux Users Group can offer no assurances that
the information is correct, and the information on this site is not
necessarily the opinion of the Waikato Linux Users Group, or any of its
members. If you have any complaints about the contents of this page,
please do not hesitate to contact the Waikato Linux Users Group, or, click
the Edit button!

Unless otherwise noted, all pages on this site are licensed under the
WlugWikiLicense.