summaryrefslogtreecommitdiff
path: root/src/irmd
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2026-06-21 12:46:27 +0200
committerSander Vrijders <sander@ouroboros.rocks>2026-06-29 08:32:59 +0200
commite42a24f39afe15c5ac579fa519df98643d4fc6dd (patch)
tree87f145d0b756ff2dc1915077872167aa957054ee /src/irmd
parentbe419a9e4cac9428c432d8d7907778d31c12d409 (diff)
downloadouroboros-e42a24f39afe15c5ac579fa519df98643d4fc6dd.tar.gz
ouroboros-e42a24f39afe15c5ac579fa519df98643d4fc6dd.zip
lib: Guard logging against thread cancellation
POSIX defines printf() and syslog() as possible cancellation points. This hardens thread cancellation cleanup by wrapping the log macros in pthread_setcancelstate(PTHREAD_CANCEL_DISABLE) and restores the prior cancel state afterwards. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/irmd')
0 files changed, 0 insertions, 0 deletions