Site icon EfmSoft

What does errno 88 (ENOTSOCK) mean?

 
Could be also:
ConstantTypeOS
ERROR_NET_WRITE_FAULTWin32 errorWindows
EBADMACHOerrnoMac
EILSEQerrnoSolaris
FTDISK_INTERNAL_ERRORBugCheck CodeWindows
VOLMGRX_INTERNAL_ERRORBugCheck CodeWindows
Previous Next
ELIBEXEC EBADMACHO

ENOTSOCK

ENOTSOCK means that an API requiring a socket received a file descriptor for some other object. The descriptor can be a regular file, pipe, event descriptor, device, or a number whose original socket lifetime has already ended. It differs from EBADF: EBADF says the descriptor is invalid or closed, while ENOTSOCK says it is valid enough to identify an object, but that object is not a socket.

In multithreaded or asynchronous code, this is often a lifetime and ownership problem. One path closes a socket while another retains the integer value; the kernel may then reuse that number for an unrelated descriptor. Merely logging the number at the failing call is insufficient unless acquisition, duplication, handoff, and close are also recorded.

How to narrow it down

Linux getsockopt(2) · Linux shutdown(2) · POSIX sendto()


Looking for a different code? Search another status or error code.

Exit mobile version