getppid(2), which can't fail and is safe in a signal handler.
@Native<Int Function()>(isLeaf: true) external int getppid();