GETPROC_USER
if (getproc(&p, pid, GETPROC_USER, NULL) < 0)
if (getproc(&cp, 0, GETPROC_USER, ksp) < 0) {