Permalink
Browse files

Remove harmless race

  • Loading branch information...
aronisstav committed Oct 11, 2017
1 parent 4ad1004 commit c20def76f5caa7213ca1e2ebbc74f1fb3f0ef62f
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/concuerror_callback.erl
@@ -1806,7 +1806,8 @@ hijack_or_wrap_system(Name, #concuerror_info{timeout = Timeout} = Info)
hijacked;
hijack_or_wrap_system(Name, Info) ->
#concuerror_info{processes = Processes} = Info,
Fun = fun() -> system_wrapper_loop(Name, whereis(Name), Info) end,
Wrapped = whereis(Name),
Fun = fun() -> system_wrapper_loop(Name, Wrapped, Info) end,
Pid = spawn_link(Fun),
ets:insert(Processes, ?new_system_process(Pid, Name, wrapper)),
wrapped.

0 comments on commit c20def7

Please sign in to comment.