- if (servicePort != session().servicePort() || taskPort != mTaskPort) {
- secdebug("SS", "Process %p(%d) reset mismatch (sp %d-%d, tp %d-%d) for %s",
- this, pid(), servicePort.port(), session().servicePort().port(), taskPort.port(), mTaskPort.port(),
- (identity && identity[0]) ? identity : "(unknown)");
- Session &newSession = Session::find(servicePort);
- Syslog::alert("Process reset %p(%d) session %d(0x%x:0x%x)->%d(0x%x:0x%x) for %s",
- this, pid(),
- session().servicePort().port(), &session(), session().attributes(),
- newSession.servicePort().port(), &newSession, newSession.attributes(),
- (identity && identity[0]) ? identity : "(unknown)");
- //CssmError::throwMe(CSSM_ERRCODE_VERIFICATION_FAILURE); // liar
+ StLock<Mutex> _(*this);
+ if (taskPort != mTaskPort) {
+ secdebug("SS", "Process %p(%d) reset mismatch (tp %d-%d)",
+ this, pid(), taskPort.port(), mTaskPort.port());
+ //@@@ CssmError::throwMe(CSSM_ERRCODE_VERIFICATION_FAILURE); // liar