Added lstat support.
test: FIX typo. Wrong check of pid instead c_pid.