12.07.2015 Views

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2 Intel <strong>Fortran</strong> <strong>Libraries</strong> <strong>Reference</strong>print *," The pid of my parent is",IPID_RETprint *," Now I have exited with code 0xABCD"call PXFEXIT(Z'ABCD')elseprint *," I am a parent process"print *," My parent pid is ", IPID_RETprint *," I am creating the process with pid", IPIDprint *," Now I am waiting for the end of the child process"call PXFWAIT(ISTAT, IPID_RET, IERROR)print *," The child with pid ", IPID_RET," has exited"if( PXFWIFEXITED(ISTAT) ) thenprint *, " The child exited normally"istat_ret = IPXFWEXITSTATUS(ISTAT)print 10," The low byte of the child exit code is", istat_retend ifend if10 FORMAT (A,Z)end programPXFWAITPIDPOSIX Subroutine: Waits for a specific PID. This subroutine is only available on Linux*systems.Module: USE IFPOSIXSyntaxCALL PXFWAITPID (ipid, istat, ioptions, iretpid, ierror)ipid(Input) INTEGER(4). The PID to wait for. One of the following values:ValueAction< –1 Specifies to wait for any child process whose process group ID is equal to the absolutevalue of ipid.–1 Specifies to wait for any child process; this is the same behavior as PXFWAIT.0 Specifies to wait for any child process whose process group ID is equal to that of thecalling process.> 0 Specifies to wait for the child whose process ID is equal to the value of ipid.2-358

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!