Software /
code /
prosody
File
teal-src/util/signal.d.tl @ 11900:60676b607b6d
s2smanager: Fire s2s-destroyed event to mirror s2s-created
The existing events do not fire for unauthed sessions, for example (because
the type does not match). I deemed changing their behaviour too risky, and
the current behaviour may even be more desirable for some uses.
This means we now have roughly paired events:
- s2s-created -> s2s-destroyed (global only)
- s2sin-established -> s2sin-destroyed (global + host)
- s2sout-established -> s2sout-destroyed (global + host)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 12 Nov 2021 13:30:39 +0000 |
parent | 11579:ec4f0ec3c0d5 |
child | 12627:b8ce0f61855b |
line wrap: on
line source
local record lib enum signal "SIGABRT" "SIGALRM" "SIGBUS" "SIGCHLD" "SIGCLD" "SIGCONT" "SIGFPE" "SIGHUP" "SIGILL" "SIGINT" "SIGIO" "SIGIOT" "SIGKILL" "SIGPIPE" "SIGPOLL" "SIGPROF" "SIGQUIT" "SIGSEGV" "SIGSTKFLT" "SIGSTOP" "SIGSYS" "SIGTERM" "SIGTRAP" "SIGTTIN" "SIGTTOU" "SIGURG" "SIGUSR1" "SIGUSR2" "SIGVTALRM" "SIGWINCH" "SIGXCPU" "SIGXFSZ" end signal : function (integer | signal, function, boolean) : boolean raise : function (integer | signal) kill : function (integer, integer | signal) -- enum : integer end return lib