Solaris Common Messages and Troubleshooting Guide

Bad file number

Cause

Generally this is a program error, not a usage error.

Action

Contact the vendor or author of the program for an update.

Technical Notes

Either a file descriptor refers to no open file, or a read(2) (or write(2)) request is made to a file that is open only for writing (or reading).

The symbolic name for this error is EBADF, errno=9.