Checks for files to check

Files that belong to the same PID shall not be checked.
Nonregular files shall not be checked.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>