]> git.puffer.fish Git - mirror/frr.git/commit
lib, bgpd: Convert frr_pthread_set_name to only cause it to set os name of the thread
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 9 Jan 2019 19:59:22 +0000 (14:59 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 10 Jan 2019 13:45:59 +0000 (08:45 -0500)
commit5c92ced41971803b9444aa87ec19cac2808f8b92
treedf2efd03070ef3a703bafdd82d94c74e7ffafe7d
parentfb11cf0468a150b5989d34e4dca2f47ba2b20b9d
lib, bgpd: Convert frr_pthread_set_name to only cause it to set os name of the thread

The current invocation of frr_pthread_set_name was causing it reset the os_name.
There is no need for this, we now always create the pthread appropriately
to have both name and os_name.  So convert this function to a simple
call through of the pthread call now.

Before(any of these changes):
sharpd@robot ~/frr1> ps -L -p 16895
  PID   LWP TTY          TIME CMD
16895 16895 ?        00:01:39 bgpd
16895 16896 ?        00:00:54
16895 16897 ?        00:00:07 bgpd_ka

After:
sharpd@donna ~/frr1> ps -L -p 1752
  PID   LWP TTY          TIME CMD
 1752  1752 ?        00:00:00 bgpd
 1752  1753 ?        00:00:00 bgpd_io
 1752  1754 ?        00:00:00 bgpd_ka

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_keepalives.c
lib/frr_pthread.c
lib/frr_pthread.h