From b9b86029be18bd02cb7c4396c364e372488d2faa Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 31 May 2013 18:40:49 +0200 Subject: [PATCH] Display PID in tracked_fds_debug(). --- src/trackfds.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/trackfds.h b/src/trackfds.h index 446639f..474b072 100644 --- a/src/trackfds.h +++ b/src/trackfds.h @@ -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]); -- 2.45.2