Skip to content

Instantly share code, notes, and snippets.

@alimsk
Last active August 29, 2021 20:18
Show Gist options
  • Save alimsk/5e739c829e74df89c05fd2646cc5ffd0 to your computer and use it in GitHub Desktop.
Save alimsk/5e739c829e74df89c05fd2646cc5ffd0 to your computer and use it in GitHub Desktop.
linux signal (typescript/js)
// it's fucking hard to find this piece of shit
const signals = {
SIGHUP: 1,
SIGINT: 2,
SIGQUIT: 3,
SIGILL: 4,
SIGTRAP: 5,
SIGABRT: 6,
SIGIOT: 6,
SIGBUS: 7,
SIGFPE: 8,
SIGKILL: 9,
SIGUSR1: 10,
SIGSEGV: 11,
SIGUSR2: 12,
SIGPIPE: 13,
SIGALRM: 14,
SIGTERM: 15,
SIGCHLD: 17,
SIGSTKFLT: 16,
SIGCONT: 18,
SIGSTOP: 19,
SIGTSTP: 20,
SIGTTIN: 21,
SIGTTOU: 22,
SIGURG: 23,
SIGXCPU: 24,
SIGXFSZ: 25,
SIGVTALRM: 26,
SIGPROF: 27,
SIGWINCH: 28,
SIGIO: 29,
SIGPOLL: 29,
SIGPWR: 30,
SIGSYS: 31
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment