From: Simon Ruderich Date: Fri, 31 May 2013 16:40:49 +0000 (+0200) Subject: Display PID in tracked_fds_debug(). X-Git-Tag: 0.1~133 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=b9b86029be18bd02cb7c4396c364e372488d2faa;p=coloredstderr%2Fcoloredstderr.git Display PID in tracked_fds_debug(). --- 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]);