Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fork(2)

wait(2)

signal(3)

XtAddWorkProc(3Xt)

RunProcess(3A)

GetCommandStatus(3A)



  ADDCHILDHANDLER(3A)                           ADDCHILDHANDLER(3A)



  NAME
       AddChildHandler - add a child handler for a process


  SYNOPSIS
       AddChildHandler (pid, func, arg)
       int pid;
       int (*func)();
       int arg;

  DESCRIPTION
       AddChildHandler registers a child handler process for the
       given pid.  When the child exits, the exit status is saved,
       and a work procedure is added, which will call the handling
       routine for the child.  This avoids executing a lot of code
       in the signal handling routine, and allows the child handler
       to be scheduled around the event processing of the X
       toolkit.

       The calling sequence of the handler are:

            handler (arg, status, pid)
            int arg;
            int status;
            int pid;

       The arg is the user-provided argument to AddChildHandler.
       The status is its exit status, and pid is the process ID of
       the child process.  See wait(2) for details on the format of
       status.

  SEE ALSO
       fork(2), wait(2), signal(3), XtAddWorkProc(3Xt),
       RunProcess(3A), GetCommandStatus(3A)








  Page 1                                           (printed 9/3/91)
















Typewritten Software • bear@typewritten.org • Edmonds, WA 98026