From: Chirag Shah Date: Thu, 26 Jul 2018 21:20:54 +0000 (-0700) Subject: bgpd: add keepalive thread name X-Git-Tag: frr-6.1-dev~128^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=a9198bc1e272f6b5be3ff08354ae41a67685b409;p=matthieu%2Ffrr.git bgpd: add keepalive thread name Testing Done: Signed-off-by: Chirag Shah --- diff --git a/bgpd/bgp_keepalives.c b/bgpd/bgp_keepalives.c index 1504893c47..3216683a54 100644 --- a/bgpd/bgp_keepalives.c +++ b/bgpd/bgp_keepalives.c @@ -180,6 +180,12 @@ void *bgp_keepalives_start(void *arg) pthread_cond_init(peerhash_cond, &attrs); pthread_condattr_destroy(&attrs); +#ifdef GNU_LINUX + pthread_setname_np(fpt->thread, "bgpd_ka"); +#elif defined(OPEN_BSD) + pthread_set_name_np(fpt->thread, "bgpd_ka"); +#endif + /* initialize peer hashtable */ peerhash = hash_create_size(2048, peer_hash_key, peer_hash_cmp, NULL); pthread_mutex_lock(peerhash_mtx);