I'd like msyslog to indicate which thread is doing the logging. The main thread in ntpd currently creates up to 3 threads. One for DNS, and a NTS thread for each of IPv4 and IPv6. The DNS thread gets created and joined, but there is only one at any time. We may need more NTS threads in the future.
Linux has gettid() that returns a pid_t for the current thread. So a line in wscript to see if gettid exissts and an ifdef in msyslog.c to use it would solve my problem on Linux. FreeBSD uses a pointer for pthread_t We could teach msyslog to keep a small table of pthread_t and then print [pid.idx] rather than [pid] Anybody thought about this area? Any good ideas? -- These are my opinions. I hate spam. _______________________________________________ devel mailing list devel@ntpsec.org https://lists.ntpsec.org/mailman/listinfo/devel