summaryrefslogtreecommitdiff
path: root/output.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-09-19 01:15:22 -0400
committerPaul Smith <psmith@gnu.org>2013-09-21 14:24:44 -0400
commit4120f91846f781ead7350f86c9614a19824450f5 (patch)
tree22d2d901aeaf39b23272204c583e59cc67b60b86 /output.c
parent30a5ee0d8551ea1879b0c7638f455d956456cee1 (diff)
downloadgunmake-4120f91846f781ead7350f86c9614a19824450f5.tar.gz
Don't write "Entering" every time we re-exec for remake makefiles.
Diffstat (limited to 'output.c')
-rw-r--r--output.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/output.c b/output.c
index c445e63..32334eb 100644
--- a/output.c
+++ b/output.c
@@ -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)