[Bug 723708] checkproc returns wrong values