thermferm/server.c

changeset 724
01e3936f62d4
parent 717
22dd7ab614e5
child 727
78744b7e6021
--- a/thermferm/server.c	Sat May 04 13:49:36 2024 +0200
+++ b/thermferm/server.c	Sat May 04 15:18:02 2024 +0200
@@ -2638,9 +2638,10 @@
 {
     socklen_t   addrlen;
     int         s, optval = 1;
+    pid_t	pid = gettid();
 
     my_server_state = 1;
-    syslog(LOG_NOTICE, "Thread my_server_loop started");
+    syslog(LOG_NOTICE, "Thread my_server_loop started, pid=%d", pid);
 
     /*
      * Prepare thread to stop in blocking accept() call.

mercurial