Software /
code /
prosody
Annotate
teal-src/util/signal.d.tl @ 11694:d6be4dda1f60
net.server_epoll: Set minimum wait time to 1ms, matching epoll
A timeout value less than 0.001 gets turned into zero on the C side, so
epoll_wait() returns instantly and essentially busy-loops up to 1ms,
e.g. when a timer event ends up scheduled (0, 0.001)ms into the future.
Unsure if this has much effect in practice, but it may waste a small
amount of CPU time. How much would depend on how often this ends up
happening and how fast the CPU gets trough main loop iterations.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 15 Jul 2021 01:38:44 +0200 |
parent | 11579:ec4f0ec3c0d5 |
child | 12627:b8ce0f61855b |
rev | line source |
---|---|
11579 | 1 local record lib |
2 enum signal | |
3 "SIGABRT" | |
4 "SIGALRM" | |
5 "SIGBUS" | |
6 "SIGCHLD" | |
7 "SIGCLD" | |
8 "SIGCONT" | |
9 "SIGFPE" | |
10 "SIGHUP" | |
11 "SIGILL" | |
12 "SIGINT" | |
13 "SIGIO" | |
14 "SIGIOT" | |
15 "SIGKILL" | |
16 "SIGPIPE" | |
17 "SIGPOLL" | |
18 "SIGPROF" | |
19 "SIGQUIT" | |
20 "SIGSEGV" | |
21 "SIGSTKFLT" | |
22 "SIGSTOP" | |
23 "SIGSYS" | |
24 "SIGTERM" | |
25 "SIGTRAP" | |
26 "SIGTTIN" | |
27 "SIGTTOU" | |
28 "SIGURG" | |
29 "SIGUSR1" | |
30 "SIGUSR2" | |
31 "SIGVTALRM" | |
32 "SIGWINCH" | |
33 "SIGXCPU" | |
34 "SIGXFSZ" | |
35 end | |
36 signal : function (integer | signal, function, boolean) : boolean | |
37 raise : function (integer | signal) | |
38 kill : function (integer, integer | signal) | |
39 -- enum : integer | |
40 end | |
41 return lib |