On systems where the glibc exit call is used, the exit code returned to the OS is actually code & 0xff. This made my exit code of 0xb00_b00 be a success.
We should either figure out how to make glibc pass through the exit code verbatim, or document this atrocity.