diff options
author | Eric Wong <e@80x24.org> | 2024-04-26 11:29:44 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2024-04-28 17:05:33 +0000 |
commit | d4529bfbce012361c802a21ce2147ae3967c11eb (patch) | |
tree | 434254c3eb9db0e0624253fb59f1339ebb429f89 /examples/unsubscribe-milter@.service | |
parent | c807cdd1c2e85237e769532a36819888ca97f8b1 (diff) | |
download | public-inbox-d4529bfbce012361c802a21ce2147ae3967c11eb.tar.gz |
alarm(2) delivering SIGALRM seems sufficient for Xapian since Xapian doesn't block signals (which would necessitate the use of SIGKILL via RLIMIT_CPU hard limit). When Xapian gets stuck in `D' state on slow storage, SIGKILL would not make a difference, either (at least not on Linux). Relying on RLIMIT_CPU is also trickier since we must account for CPU time already consumed by a process for unrelated requests. Thus we just rely on a simple alarm-based timeout. This also avoids requiring the optional BSD::Resource module in the (mostly) Perl implementation (and avoids potential bugs given my meager arithmetic skills).
Diffstat (limited to 'examples/unsubscribe-milter@.service')
0 files changed, 0 insertions, 0 deletions