Skip to content
Snippets Groups Projects
Commit b34a0b32 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

fix usage of flock - use the command mode instead of locking a file descriptor...

fix usage of flock - use the command mode instead of locking a file descriptor to fix build issues on mac os x

SVN-Revision: 23743
parent f742f85c
No related branches found
No related tags found
No related merge requests found
...@@ -254,9 +254,10 @@ endef ...@@ -254,9 +254,10 @@ endef
# $(2) => The lock name. If not given, the global lock will be used. # $(2) => The lock name. If not given, the global lock will be used.
# $(3) => The filedescriptor used for the lock. Defaults to 1023. # $(3) => The filedescriptor used for the lock. Defaults to 1023.
define locked define locked
( $(STAGING_DIR_HOST)/bin/flock -x $(if $(3),$(3),1023) && \ SHELL= \
$(1) \ $(STAGING_DIR_HOST)/bin/flock \
) $(if $(3),$(strip $(3)),1023)>$(TMP_DIR)/.$(if $(2),$(strip $(2)),global).flock $(TMP_DIR)/.$(if $(2),$(strip $(2)),global).flock \
-c '$(subst ','\'',$(1))'
endef endef
# file extension # file extension
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment