Can statvfs block on certain network devices? How to handle that case?
问题 I am using keybase (a cloud base data store for your SSH and other keys) and today somehow it did not restart when I started X-Windows. As a result, the command df (and thus statvfs() in my code) would just block after telling me that the transport was down. $ df df: '/home/alexis/"/home/alexis/.local/share/keybase/fs"': Transport endpoint is not connected df: /run/user/1000/gvfs: Transport endpoint is not connected _ The prompt would sit there and never return. I don't care much that df