diff options
author | Paul Smith <psmith@gnu.org> | 2013-09-19 01:15:22 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2013-09-21 14:24:44 -0400 |
commit | 4120f91846f781ead7350f86c9614a19824450f5 (patch) | |
tree | 22d2d901aeaf39b23272204c583e59cc67b60b86 /output.c | |
parent | 30a5ee0d8551ea1879b0c7638f455d956456cee1 (diff) | |
download | gunmake-4120f91846f781ead7350f86c9614a19824450f5.tar.gz |
Don't write "Entering" every time we re-exec for remake makefiles.
Diffstat (limited to 'output.c')
-rw-r--r-- | output.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -36,7 +36,7 @@ this program. If not, see <http://www.gnu.org/licenses/>. */ #endif /* WINDOWS32 */ struct output *output_context = NULL; -static unsigned int stdio_traced = 0; +unsigned int stdio_traced = 0; #define OUTPUT_NONE (-1) @@ -374,15 +374,14 @@ output_dump (struct output *out) int traced = 0; /* Try to acquire the semaphore. If it fails, dump the output - unsynchronized; still better than silently discarding it. */ + unsynchronized; still better than silently discarding it. + We want to keep this lock for as little time as possible. */ void *sem = acquire_semaphore (); /* Log the working directory for this dump. */ if (print_directory_flag && output_sync != OUTPUT_SYNC_RECURSE) traced = log_working_directory (output_context, 1); - /* We've entered the "critical section" during which a lock is held. We - want to keep it as short as possible. */ if (outfd_not_empty) pump_from_tmp (out->out, stdout); if (errfd_not_empty && out->err != out->out) |