[erlang-patches] Fix for a race condition in percept

Niclas Axelsson <>
Wed Dec 15 11:52:56 CET 2010


On 12/15/2010 11:36 AM, Ahmed Omar wrote:
> Fixes a race condition found in percept_db start/1 function.
>
> When function start/1 finds an instance of percept_db running, it will
> send a message to stop it and spawn a process to start a new one,
> which leads to a race condition.
> The function will return {restarted, pid()} but the pid() will die
> once it tries to create the ets table.
>
>
> git fetch git://github.com/spawnthink/otp.git percept_race_cond
>
>    
Hi Ahmed,
Thanks for your patch. Will include it into 'pu'.

Regards,
Niclas Axelsson, Erlang/OTP


More information about the erlang-patches mailing list