diff options
author | turret <turret@duck.com> | 2024-01-14 20:54:28 -0600 |
---|---|---|
committer | turret <turret@duck.com> | 2024-01-14 20:54:28 -0600 |
commit | d4ba645474580e1da5a1297ceab40d5544bf53f0 (patch) | |
tree | 2c1116437c215d2cfa926ddea6a09874478f7b2c /net/net.c | |
parent | bb357be604b64d489b6015f4c7466be51a748929 (diff) | |
download | discord-bot-skeleton-d4ba645474580e1da5a1297ceab40d5544bf53f0.tar.gz discord-bot-skeleton-d4ba645474580e1da5a1297ceab40d5544bf53f0.tar.bz2 discord-bot-skeleton-d4ba645474580e1da5a1297ceab40d5544bf53f0.zip |
init: register signal blockers earlier
prevents potential race condition where a subsystem can terminate before
we fully block SIGCHLD, causing SIGCHLD to be sent to init and having
our entire process terminated ungracefully.
prevents bash and family from sending "Terminated" due to our process
receiving SIGTERM during a panic, since we already exit in there and
it'd be queued up if we do receive one
Diffstat (limited to 'net/net.c')
0 files changed, 0 insertions, 0 deletions