[OT] Re: return level?
Clint Adams
schizo at debian.org
Tue Feb 18 19:06:16 CET 2003
> Looks like python is doing a "left shift 8" of the return code and you
> should do a "right shift 8" to get the value you want. If I were you, I'd
> take a look at the documentation of os.system() and see what it's returning.
It's not Python doing the shift; it's the libc system() that does that.
-From /usr/include/bits/waitstatus.h on glibc:
#define __WEXITSTATUS(status) (((status) & 0xff00) >> 8)
More information about the Bogofilter
mailing list