From cd7387feb48f667b727dcf5220d552f9ed406c01 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 2 May 2016 13:18:24 -0400 Subject: compile and link modes: .libs directory: properly handle parallel execution. --- src/logic/slbt_exec_compile.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/logic/slbt_exec_compile.c') diff --git a/src/logic/slbt_exec_compile.c b/src/logic/slbt_exec_compile.c index 3d04304..c5c3e70 100644 --- a/src/logic/slbt_exec_compile.c +++ b/src/logic/slbt_exec_compile.c @@ -61,8 +61,10 @@ int slbt_exec_compile( if ((fdlibs = open(ectx->ldirname,O_DIRECTORY)) >= 0) close(fdlibs); else if ((errno != ENOENT) || mkdir(ectx->ldirname,0777)) { - slbt_free_exec_ctx(actx); - return -1; + if (errno != EEXIST) { + slbt_free_exec_ctx(actx); + return -1; + } } } -- cgit v1.2.3