How can I check the umask of a program which is currently running?
[update: another process, not the current process.]