This post is about a program hang. The hang was in the Python process that was running Ansible scripts. The problem was hard to debug and had me go back to Unix textbook.[Read More]
Correct way to create a directory in Python
Can you see the problem with this code? It comes from Ansible, v188.8.131.52.
if not os.path.exists(value): os.makedirs(value, 0o700)
It’s quite straightforward. It checks if a directory path exists. If
it does not, then it creates the directory path, similar to
mkdir -p. What could be wrong?
Weird PID files
This is a story of multiple processes running on a system, but with empty PID files.
It took a lot of debugging.[Read More]
Don't hang up on me
Can you tell me when a shell sends a “HANGUP” signal to a process? What happens if there is a pipeline? What if you prefix this pipeline with the “nohup” command?[Read More]