0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-28 06:48:20 +02:00

ircd::net::dns: Add syscall_usage_warning timer around netdb related.

This commit is contained in:
Jason Volk 2020-03-06 15:19:41 -08:00
parent 6679b66806
commit 5a3ed6e4b3

View file

@ -569,6 +569,10 @@ try
{
thread_local struct ::servent res, *ent {nullptr};
thread_local char _name[32], _prot[32], buf[2048];
const prof::syscall_usage_warning timer
{
"net::dns::service_port(%s)", name
};
strlcpy(_name, name);
strlcpy(_prot, prot);