SysProcTerminate

Table of Contents

SysProcTerminate

Description

Terminate the child process

Parameters

NameDirectionDescription
procinChild process handle to terminate.

Success

Return

Failure

Abort with log message.

Usage example (Cross-references)

    }
    
    void SysProcTerminate(SysProc *proc) {
    if (!proc) {
    LOG_FATAL("Invalid argument");
    LOG_FATAL("Invalid argument");
    }
    SysProcTerminate(proc);
    #if defined(__APPLE__) || defined(__linux__)
    close(proc->stdin_fd);

Share :