What does errno 26 (ETXTBSY) mean?

 
Could be also:
ConstantTypeOS
ERROR_NOT_DOS_DISKWin32 errorWindows
KERN_INVALID_PROCESSOR_SETKern returnMac
ippStsOvermuchStringsIntel Ipp StatusAny
ETXTBSYerrnoLinux
ETXTBSYerrnoMac
MEMORY_MANAGEMENTBugCheck CodeWindows

ETXTBSY

Executing text and file replacement

On Solaris, ETXTBSY is errno value 26. The base message is Text file busy, but the useful diagnostic context is narrower than the short message: solaris refused a write or modification because the file is being used as executable text.

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

What to check

  • Look for attempts to overwrite an executable, shared object, or mapped text while it is active.
  • Use atomic replacement patterns such as writing a new file and renaming it into place.
  • Separate deployment races from permission errors such as EACCES or read-only filesystem errors such as EROFS.

References


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