From: Garrett C. <ris...@li...> - 2010-06-20 09:31:14
|
The branch, pu, has been updated via 9aac6e50973d30ad30fb1473b44af7f166f848e8 (commit) from 80886b520423c015b63cff03082e274147042243 (commit) - Log ----------------------------------------------------------------- commit 9aac6e50973d30ad30fb1473b44af7f166f848e8 Author: Garrett Cooper <yan...@gm...> Date: Sun Jun 20 02:26:08 2010 -0700 Add compatibility bit for BSD setpgrp(2). Cause POSIX came to the party late, not BSD (and we're testing killpg, not setpgrp in this test)... Signed-off-by: Garrett Cooper <yan...@gm...> ----------------------------------------------------------------------- Summary of changes: .../conformance/interfaces/killpg/1-2.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/testcases/open_posix_testsuite/conformance/interfaces/killpg/1-2.c b/testcases/open_posix_testsuite/conformance/interfaces/killpg/1-2.c index 85f1a99..7c175b8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/killpg/1-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/killpg/1-2.c @@ -45,7 +45,17 @@ int main() sigaction(SIGTOTEST, &act, 0); /* change child's process group id */ + + /* + * XXX: POSIX 1003.1-2001 added setpgrp(2) to BASE, but + * unfortunately BSD has had their own implementations for + * ages for compatibility reasons. + */ +#if __FreeBSD__ || __NetBSD__ || __OpenBSD__ + setpgrp(0, 0); +#else setpgrp(); +#endif sigpause(SIGABRT); hooks/post-receive -- ltp |