To prevent multiple apt instances from running at the same time, apt create a lock file. How to create a similar lock file in python for my program? is it just an empty file or is it using a special atomic operation?
apt
2.1m questions
2.1m answers
60 comments
57.0k users