callgrind_control: Fix behavior with callgrind runs of another user

callgrind_control uses files /tmp/callgrind.info.* to be able to
locate running callgrind processes. These files can be read only by
the user which started callgrind. The callgrind_control script
did not check for "permission denied" on opening these files, which
resulted in some unexpected errors. Now, it is checked whether
the "open" was successful, and if not, we skip the according callgrind
process.

Fixes bug 149963.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6861 a5019735-40e9-0310-863c-91ae7b9d1cf9
1 file changed