I am experimenting with mount namespaces. I have a python script, which creates a bind mount, after that a mount namespace with the
unshare system call. I print the PID, and pause the script. I can list the mounts with:
nsenter --mount=/proc/PID/ns/mnt mount
Let the python process be interrupted before calling
umount (or let us say it terminates due to some error). Now
/proc/PID disappears. Will the system be in a consistenst state? I mean will
umount be called automatically, or will the mounts "cleaned up" some other way?