if (getResult(curpid, result[n]))