changeset 11594:05c21d0982bb

8158629: bash >(...) construct still causes race conditions Reviewed-by: tbell
author erikj
date Fri, 01 Jul 2016 11:55:25 +0200
parents 2af3fb9f244f
children 640da3ec4953
files make/gensrc/GensrcDtrace.gmk make/lib/CompileDtracePostJvm.gmk
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/make/gensrc/GensrcDtrace.gmk	Wed Jun 29 16:11:50 2016 +0200
+++ b/make/gensrc/GensrcDtrace.gmk	Fri Jul 01 11:55:25 2016 +0200
@@ -45,7 +45,8 @@
   $(DTRACE_GENSRC_DIR)/%.h: $(DTRACE_SOURCE_DIR)/%.d
 	$(call LogInfo, Generating dtrace header file $(@F))
 	$(call MakeDir, $(@D) $(DTRACE_SUPPORT_DIR))
-	$(call ExecuteWithLog, $(DTRACE_SUPPORT_DIR)/$(@F).d, $(CC) -E $(DTRACE_CPP_FLAGS) $< > $(DTRACE_SUPPORT_DIR)/$(@F).d)
+	$(call ExecuteWithLog, $(DTRACE_SUPPORT_DIR)/$(@F).d, \
+	    ( $(CC) -E $(DTRACE_CPP_FLAGS) $< > $(DTRACE_SUPPORT_DIR)/$(@F).d ) )
 	$(call ExecuteWithLog, $@, $(DTRACE) $(DTRACE_FLAGS) -h -o $@ -s $(DTRACE_SUPPORT_DIR)/$(@F).d)
 
   # Process all .d files in DTRACE_SOURCE_DIR. They are:
--- a/make/lib/CompileDtracePostJvm.gmk	Wed Jun 29 16:11:50 2016 +0200
+++ b/make/lib/CompileDtracePostJvm.gmk	Fri Jul 01 11:55:25 2016 +0200
@@ -68,7 +68,7 @@
       $1: $$(BUILD_DTRACE_GEN_OFFSETS)
 	$$(call LogInfo, Generating dtrace $2 file $$(@F))
 	$$(call MakeDir, $$(@D))
-	$$(call ExecuteWithLog, $$@, $$(DTRACE_GEN_OFFSETS_TOOL) -$$(strip $2) > $$@)
+	$$(call ExecuteWithLog, $$@, ( $$(DTRACE_GEN_OFFSETS_TOOL) -$$(strip $2) > $$@ ) )
 
       TARGETS += $1
     endef