Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

interface libtmux-ts latest

ProgramExit

How a program ended: an exit status or the signal that ended it.

Source and package
Qualified name
ProgramExit
Module
types
Package
libtmux
Source
packages/libtmux/src/types.ts
interface types.ProgramExit

Description#

One of the two is set, as for a Node child process: exitCode for a program that exited, signalCode for one a signal ended. A program Server.run or Server.spawn started runs under an sh, which cannot tell a signal's death from the program exiting with 128 plus that signal's number, so a program's own exit 130 reads as "SIGINT", as that status means by convention.

Members2#

  • exitCode: number | null property The exit status, or null when a signal ended the process.
  • signalCode: string | null property The signal that ended the process, such as "SIGKILL", or null.
Esc

Type to search.

Reference previewOpen reference