[Bug 721655] New: checkproc returns wrong value