/** * Terminates the process and deletes the temporary files * @param string $fileId the unique file id generated by ProcMonitor::Start * @param int $procId the pid of the process to kill * @see ProcMonitor::Start() */ public function Close($fileId, $procId) { posix_kill($procId, 15); unlink(ProcMonitor::GetFName($fileId)); unlink(ProcMonitor::GetBytesFName($fileId)); }