Summary: | function system() from sys-libs/glibc-2.6.1 gives return values in wrong byte-order | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Guido Winkelmann <guido-genbugs> |
Component: | [OLD] Core system | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | truedfx |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Guido Winkelmann
2008-08-20 14:28:29 UTC
Please post your `emerge --info' too. There's no need for emerge --info output. Please take a look at the documentation; this is the correct behaviour. From `man system`: RETURN VALUE The value returned is -1 on error (e.g. fork(2) failed), and the return status of the command otherwise. This latter return status is in the format specified in wait(2). Thus, the exit code of the command will be WEXITSTATUS(status). |