system_getppid(3f) - [M_system:QUERY] get parent process ID (PPID) of current process from Fortran by calling getppid(3c) (LICENSE:PD)
Synopsis
Description
Return Value
Errors
See Also
Examples
integer(kind=c_int) function system_getppid()
The system_getppid() function returns the parent process ID of the calling process.
The system_getppid() function should always be successful and no return value is reserved to indicate an error.
No errors are defined.
exec, fork(), getpgid(), getpgrp(), getpid(), kill(), setpgid(), setsid()
Get parent process PID (PPID) from Fortran
program demo_system_getppid use M_system, only : system_getppid implicit none write(*,*)PPID=,system_getppid() end program demo_system_getppidResults:
> PPID= 484730
Nemo Release 3.1 | system_getppid (3m_system) | March 07, 2025 |