VMS Help
RTL Routines, LIB$, LIB$ATTACH

 *Conan The Librarian

    The Attach Terminal to Process routine requests the calling
    process's command language interpreter (CLI) to detach the
    terminal of the calling process and to reattach it to a different
    process.

    Format

      LIB$ATTACH  process-id

  1 - Returns

    OpenVMS usage:cond_value
    type:         longword (unsigned)
    access:       write only
    mechanism:    by value

  2 - Argument

 process-id

    OpenVMS usage:process_id
    type:         longword integer (unsigned)
    access:       read only
    mechanism:    by reference

    Identification of the process to which LIB$ATTACH requests the
    calling process to attach its terminal. The process-id argument
    is the address of an unsigned longword integer containing the
    process identification. The specified process must be currently
    detached (by means of a SPAWN or ATTACH command or by a call to
    LIB$SPAWN or LIB$ATTACH) and must be part of the caller's job.
  Close     Help