[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 1

setpinit Kernel Service

Purpose

Sets the parent of the current kernel process to the initialization process.

Syntax

#include <sys/types.h>
#include <sys/errno.h>
#include <sys/device.h>
int setpinit()

Description

The setpinit kernel service can be called by a kernel process to set its parent process to the init process. This is done to redirect the death of child signal for the termination of the kernel process. As a result, the init process is allowed to perform its default zombie process cleanup.

The setpinit service is used by a kernel process that can terminate, but does not want the user-mode process under which it was created to receive a death of child process notification.

Execution Environment

The setpinit kernel service can be called from the process environment only.

Return Values

0 Indicates a successful operation.
EINVAL Indicates that the current process is not a kernel process.

Implementation Specifics

The setpinit kernel service is part of the Base Operating System (BOS) Runtime.

Related Information

Using Kernel Processes and Process and Exception Management Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts.


[ Previous | Next | Contents | Home | Search ]