diff options
author | Ahmed Omar <[email protected]> | 2010-12-15 11:26:18 +0100 |
---|---|---|
committer | Ahmed Omar <[email protected]> | 2010-12-15 11:26:18 +0100 |
commit | 638a610d0b7ada7b2099b6127410aafb9fae3313 (patch) | |
tree | 4ccebf3de17485b91a3d5c3137abe7c53bc993a1 /lib/percept/test/percept_SUITE.erl | |
parent | 9f4dd4934d427f0fb2caeb034115e0227cc4610a (diff) | |
download | otp-638a610d0b7ada7b2099b6127410aafb9fae3313.tar.gz otp-638a610d0b7ada7b2099b6127410aafb9fae3313.tar.bz2 otp-638a610d0b7ada7b2099b6127410aafb9fae3313.zip |
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.
Diffstat (limited to 'lib/percept/test/percept_SUITE.erl')
0 files changed, 0 insertions, 0 deletions