|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1212 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 1212.
Report 1212 Actions
Problem Report Number 1212 Submitter's Classification Test Suite problem State Resolved Resolution Rejected (REJ) Problem Resolution ID REJ.X.0414 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published null Product Standard Internationalised System Calls and Libraries Extended (UNIX 95) Certification Program The Open Brand certification program Test Suite VSU version 4.1.0 Test Identification base/getpgid 1 Problem Summary PG4U.00053 This was refused because it is a duplicate. Use TSD4U.00045 instead. Problem Text
This was refused because it is a duplicate. Use TSD4U.00045 instead.
Reference: TSD4U.00045 for VSU 4.0.2
The test uses setpgrp() to set the process group ID and make
the child a session leader. Therefore, the child is not in
the same session as the calling process (the parent).
According to CASPEC getpgid page, if the child is not in the
same session as the calling process, the getpgid() may fail
and set errno to EPERM if the implementation does not allow
access to the process group ID of the calling process. Since
HP implements the call this way, getpgid fails and EPERM is
set in the errno.
Recommendation:
The recommended fix to the test is to use setpgrp() only if
VSU_ACCESS_PG_ACCROSS_SESSION is set to 1 in the tetexec.cfg
file, and use setpgid(0,0) otherwise.Test Output
TEST CASE: getpgid
TEST PURPOSE #1
A successful call to pid_t getpgid(pid_t
pid) when pid is not 0 shall return the process group
ID of the process whose process ID is equal to pid.
PREP: Fork a child process
PREP: Child: change group ID to its process ID
TEST: Parent: getpgid() returns the process group
ID of the child process
ERROR: getpgid failed, errno = 1(EPERM - Not owner)
1 UNRESOLVEDReview Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
The submitter is correct but a recent ruling regarding this issue
exists. To avoid the confusion duplicate rulings regarding the same
might cause we recommend this request be refused and the submitter
use TSD4U.00045 instead.
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Rejected (REJ) Review Conclusion
This request is refused.
Problem Reporting System Options:
- View Report 1212
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority