Closed FrankC01 closed 3 weeks ago
Thanks for reporting this.
Bug in suibase is now fix.
get_process_pid() was returning the wrong PID for the "sui" process on MacOS. It was instead likely returning the PID of another process with "sui" in the name (e.g. may be sui-indexer!?)
Two things are part of this fix:
Commit 5297125 is making things significantly more robust. But there is still some unlikely race condition possible. Examples:
These should be fix with a mechanism to prevent concurrent execution of the Suibase scripts (e.g. block until other script execution completes).
With this fix, command done at same time (e.g. from two terminals) for same workdir will be executed sequentially, which is more safe.
Command for different workdirs can still be executed in parallel.
(the "status" command do not modify anything, so it does not need the mutex and is allowed to be done concurrently)