How can I check the umask of a program which is currently running?
[update: another process, not the current process.]
Beginning with Linux kernel 4.7, the umask is available in /proc//status.
/proc//status