Go to the source code of this file.
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 30 of file fork2.c.
31{
33 int status;
34
36
40
41 if ( fork( ) == 0 ) {
43
47 exit( 0 );
48 } else {
49 wait( &status );
50 if ( WEXITSTATUS( status ) != 0 )
51 test_fail( __FILE__, __LINE__,
"fork", WEXITSTATUS( status ) );
52 }
53
55
56 return 0;
57
58}
initialize the PAPI library.
Finish using PAPI and free all related resources.
int tests_quiet(int argc, char **argv)
void PAPI_NORETURN test_fail(const char *file, int line, const char *call, int retval)
void PAPI_NORETURN test_pass(const char *filename)