| View previous topic :: View next topic |
| Author |
Message |
tHeDoc Project Maintener

Joined: 21 Apr 2004 Posts: 237 Location: Echirolles, France
|
Posted: Wed Jan 19, 2005 11:02 am Post subject: pthread_atfork |
|
|
POSIX
POSIX is a registered trademark from the IEEE. The following assertions are derived from copyrighted material. Original text and copyright information can be found at http://www.opengroup.org.
Here is what POSIX requires for this function:
- pthread_atfork registers the 'prepare' handler to be called before fork() processing in the context of the fork() calling thread.
- pthread_atfork registers the 'parent' handler to be called after fork() processing in the context of the fork() calling thread in the parent process.
- pthread_atfork registers the 'child' handler to be called after fork() processing in the context of the fork() calling thread in the child process.
- NULL can be passed as any of these handlers when no treatment is required.
- When pthread_atfork is called several times, the prepare handlers are executed in reversed order as they were registered, and child and parent handlers are executed in the same order as they were registered.
- If there is not enough memory to store handler adresses, the function returns ENOMEM.
- The function does not return EINTR.
_________________ Sebastien Decugis. |
|
| Back to top |
|
 |
tHeDoc Project Maintener

Joined: 21 Apr 2004 Posts: 237 Location: Echirolles, France
|
Posted: Wed Jan 19, 2005 11:18 am Post subject: Conformance Status |
|
|
Conformance Status
- Assertion 1 is partially tested in OPTS. A new testcase will be written to test when pthread_atfork is called from a different thread than the fork() caller.
- Assertion 2 is partially tested in OPTS. A new testcase will be written to test when pthread_atfork is called from a different thread than the fork() caller.
- Assertion 3 is not currently tested. A new testcase will be written.
- Assertion 4 is partially tested in OPTS. A new testcase will be written to test different combinations of NULL/not-null parameters.
- Assertion 5 is not currently tested. A new testcase will be written.
- Assertion 6 is not currently tested. A new testcase will be written.
- Assertion 7 is not currently tested. A new testcase will be written.
_________________ Sebastien Decugis. |
|
| Back to top |
|
 |
tHeDoc Project Maintener

Joined: 21 Apr 2004 Posts: 237 Location: Echirolles, France
|
Posted: Wed Jan 19, 2005 11:20 am Post subject: Scalability & Stress Status |
|
|
Scalability & Stress Status
By its nature, this function does not need this kind of testing (it is not meant to be called intensively). _________________ Sebastien Decugis. |
|
| Back to top |
|
 |
tHeDoc Project Maintener

Joined: 21 Apr 2004 Posts: 237 Location: Echirolles, France
|
Posted: Thu Feb 03, 2005 5:26 pm Post subject: Conformance Tests |
|
|
Conformance Tests
New tests have been added to the Open POSIX Test Suite:
_________________ Sebastien Decugis. |
|
| Back to top |
|
 |
|