Randomly choose whether the locks are exclusive or shared. Not sure if this matters, just helps test if both types are detected.
Randomly choose whether the locks are exclusive or shared. Not sure if this matters, just helps test if both types are detected.

Try using shell=True when spawning the subprocesses to see if that solves the hanging children issue.

compybara/lslock