summaryrefslogtreecommitdiff
path: root/lib/log_vty.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2021-04-11 03:59:25 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2021-06-18 21:05:21 +0200
commit78598fd0195510d0d1338bf8c28e606d67e63359 (patch)
tree16748cd339dfa0636eb1c6afb3a6803aef927120 /lib/log_vty.c
parent8b94cb4388d62ad341ff352266dd5d91780e4eec (diff)
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>
Diffstat (limited to 'lib/log_vty.c')
0 files changed, 0 insertions, 0 deletions