Annotate

teal-src/util/signal.d.tl @ 12553:cc0ec0277813 0.12

util.startup: Fix async waiting for last shutdown steps Observed problem: When shutting down prosody would immediately exit after waiting for s2s connections to close, skipping the last cleanup events and reporting the exit reason and code. This happens because prosody.main_thread is in a waiting state and queuing startup.shutdown is dispatched trough the main loop via nexttick, but since the main loop was no longer running at that point it proceeded to the end of the prosody script and exited there.
author Kim Alvefur <zash@zash.se>
date Tue, 14 Jun 2022 16:28:49 +0200
parent 11579:ec4f0ec3c0d5
child 12627:b8ce0f61855b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11579
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1 local record lib
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
2 enum signal
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
3 "SIGABRT"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
4 "SIGALRM"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
5 "SIGBUS"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
6 "SIGCHLD"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
7 "SIGCLD"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
8 "SIGCONT"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
9 "SIGFPE"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
10 "SIGHUP"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
11 "SIGILL"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
12 "SIGINT"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
13 "SIGIO"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
14 "SIGIOT"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
15 "SIGKILL"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
16 "SIGPIPE"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
17 "SIGPOLL"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
18 "SIGPROF"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
19 "SIGQUIT"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
20 "SIGSEGV"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
21 "SIGSTKFLT"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
22 "SIGSTOP"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
23 "SIGSYS"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
24 "SIGTERM"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
25 "SIGTRAP"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
26 "SIGTTIN"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
27 "SIGTTOU"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
28 "SIGURG"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
29 "SIGUSR1"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
30 "SIGUSR2"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
31 "SIGVTALRM"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
32 "SIGWINCH"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
33 "SIGXCPU"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
34 "SIGXFSZ"
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
35 end
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
36 signal : function (integer | signal, function, boolean) : boolean
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
37 raise : function (integer | signal)
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
38 kill : function (integer, integer | signal)
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
39 -- enum : integer
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
40 end
ec4f0ec3c0d5 teal: Add type spec for util.signal
Kim Alvefur <zash@zash.se>
parents:
diff changeset
41 return lib