What does errno 56 (EDEADLOCK) mean?

 
Could be also:
ConstantTypeOS
ERROR_TOO_MANY_CMDSWin32 errorWindows
EBADRQCerrnoLinux
EISCONNerrnoMac
SERIAL_DRIVER_INTERNALBugCheck CodeWindows
Previous Next
EISCONN EBADSLT

EDEADLOCK

File locking deadlock compatibility code

On Solaris, EDEADLOCK is errno value 56. The base message is file locking deadlock error, but the useful diagnostic context is narrower than the short message: solaris reports a file-locking deadlock using this older compatibility name.

For EDEADLOCK, use the Solaris-specific errno table first, then compare with POSIX only for portable behavior. For EDEADLOCK, some Solaris values share names with other UNIX systems but have different numbers or more specific historical meanings.

What to check for EDEADLOCK

  • Treat it like a lock-ordering failure, not as a storage or permission problem.
  • Capture the file, byte range, process ids, and lock acquisition order.
  • Prefer portable handling that also recognizes EDEADLK.

References for EDEADLOCK


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