]> ruderich.org/simon Gitweb - coloredstderr/coloredstderr.git/commitdiff
Display PID in tracked_fds_debug().
authorSimon Ruderich <simon@ruderich.org>
Fri, 31 May 2013 16:40:49 +0000 (18:40 +0200)
committerSimon Ruderich <simon@ruderich.org>
Fri, 31 May 2013 16:40:49 +0000 (18:40 +0200)
src/trackfds.h

index 446639f95ebec40bd073e87531eb508e76047ad8..474b072d2026d9eee0faeb4505529f2d06a2fa9f 100644 (file)
@@ -118,7 +118,8 @@ static void update_environment(void) {
 
 #ifdef DEBUG
 static void tracked_fds_debug(void) {
-    debug("tracked_fds: %d/%d\n", tracked_fds_count, tracked_fds_space);
+    debug("tracked_fds: %d/%d\t[%d]\n", tracked_fds_count, tracked_fds_space,
+                                        getpid());
     size_t i;
     for (i = 0; i < tracked_fds_count; i++) {
         debug("tracked_fds[%d]: %d\n", i, tracked_fds[i]);