Penguin
Annotated edit history of EBADF version 3, including all changes. View license author blame.
Rev Author # Line
1 PerryLorier 1 !!!Bad File Descriptor
2
3 The file descriptor passed to a syscall was out of range, or was not open, or is invalid for the function requested.
4
3 PerryLorier 5 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.