]> git.puffer.fish Git - mirror/frr.git/commit
lib: cache PID & TID in zlog code
authorDavid Lamparter <equinox@diac24.net>
Sun, 11 Apr 2021 01:59:25 +0000 (03:59 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Fri, 18 Jun 2021 19:05:21 +0000 (21:05 +0200)
commit78598fd0195510d0d1338bf8c28e606d67e63359
tree16748cd339dfa0636eb1c6afb3a6803aef927120
parent8b94cb4388d62ad341ff352266dd5d91780e4eec
lib: cache PID & TID in zlog code

glibc removed its pid cache a while back, and grabbing this from TLS is
faster than repeatedly calling the kernel...

Also use `intmax_t` which is more appropriate for both PID & TID.

Signed-off-by: David Lamparter <equinox@diac24.net>
lib/zlog.c
lib/zlog.h