linux/processes: fix infinite loop, throw away workaround

ifstream.fail() will return true if it failed to open file
comparing owner with euid is a bad idea (see capabilities(7))
and it didn't compile anyway (due to `filename`)