diff options
| author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2026-06-21 12:46:27 +0200 |
|---|---|---|
| committer | Sander Vrijders <sander@ouroboros.rocks> | 2026-06-29 08:32:59 +0200 |
| commit | e42a24f39afe15c5ac579fa519df98643d4fc6dd (patch) | |
| tree | 87f145d0b756ff2dc1915077872167aa957054ee /src/irmd/main.c | |
| parent | be419a9e4cac9428c432d8d7907778d31c12d409 (diff) | |
| download | ouroboros-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/main.c')
0 files changed, 0 insertions, 0 deletions
