Thanh Hoan
New member
What is exit code 255 Unix?
Answer
Because in UNIX/POSIX, the exit code of a program is defined to be
an unsigned 8-bit value
. Converting -1 to unsigned 8-bit gives 255. … To give more detail: the wait*() family of system calls in UNIX encode the result of a process into a single 32bit integer.
Answer
Because in UNIX/POSIX, the exit code of a program is defined to be
an unsigned 8-bit value
. Converting -1 to unsigned 8-bit gives 255. … To give more detail: the wait*() family of system calls in UNIX encode the result of a process into a single 32bit integer.