C Library Functions - system_getppid (3)
NAME
system_getppid(3f) - [M_system:QUERY] get parent process ID (PPID) of
current process from Fortran by calling getppid(3c)
(LICENSE:PD)
CONTENTS
Synopsis
Description
Return Value
Errors
See Also
Examples
SYNOPSIS
integer(kind=c_int) function system_getppid()
DESCRIPTION
The system_getppid() function returns the parent process ID of
the calling process.
RETURN VALUE
The system_getppid() function should always be successful and no
return value is reserved to indicate an error.
ERRORS
No errors are defined.
SEE ALSO
exec, fork(), getpgid(), getpgrp(), getpid(), kill(),
setpgid(), setsid()
EXAMPLES
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_getppid
Results:
> PPID= 484730
| Nemo Release 3.1 | system_getppid (3) | June 29, 2025 |
Generated by manServer 1.08 from 0b19acee-89ad-465e-8902-d711dac4c8f6 using man macros.