aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/src/cover.erl
diff options
context:
space:
mode:
authorManuel Rubio <[email protected]>2013-04-04 12:04:21 +0200
committerManuel Rubio <[email protected]>2013-04-04 12:04:21 +0200
commitb0dcce7d06fe729959bcfaa2182e74297348af36 (patch)
treec042acf4af9e4ad28bb199ab0ce36be3a4ca5bee /lib/tools/src/cover.erl
parent8dba74ac7ff331a2c4870cc64b62dd4f168533eb (diff)
downloadotp-b0dcce7d06fe729959bcfaa2182e74297348af36.tar.gz
otp-b0dcce7d06fe729959bcfaa2182e74297348af36.tar.bz2
otp-b0dcce7d06fe729959bcfaa2182e74297348af36.zip
fix a race condition when there're several applications in apps directory
Diffstat (limited to 'lib/tools/src/cover.erl')
-rw-r--r--lib/tools/src/cover.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tools/src/cover.erl b/lib/tools/src/cover.erl
index c2c627abe0..85c116cb06 100644
--- a/lib/tools/src/cover.erl
+++ b/lib/tools/src/cover.erl
@@ -721,6 +721,11 @@ main_process_loop(State) ->
end,
State#main_state.nodes),
reload_originals(State#main_state.compiled),
+ ets:delete(?COVER_TABLE),
+ ets:delete(?COVER_CLAUSE_TABLE),
+ ets:delete(?BINARY_TABLE),
+ ets:delete(?COLLECTION_TABLE),
+ ets:delete(?COLLECTION_CLAUSE_TABLE),
unregister(?SERVER),
reply(From, ok);