libcutils/mq.c
static void masterProxyHandleConnectionError(PeerProxy* masterProxy,
        Header* header) {
    Peer* peer = masterProxy->peer;
    
    // Look up the peer proxy.
    pid_t pid = header->credentials.pid;
    PeerProxy* peerProxy = NULL;
    peerLock(peer);
    peerProxy = hashmapGet(peer->peerProxies, &pid);
    peerUnlock(peer);

    if (peerProxy != NULL) {
        LOGI("Couldn't connect to %d.", pid);
        peerProxyKill(peerProxy, false);
    } else {
        LOGW("Peer proxy for %d not found. This shouldn't happen.", pid);
    }
    
    peerProxyExpectHeader(masterProxy);
}
/**
 * The master told us this peer is dead.
 */
The master told us this peer is dead.
The master told us this peer is dead .
static void masterProxyHandleConnectionError(PeerProxy* masterProxy,
        Header* header) {
    Peer* peer = masterProxy->peer;
    pid_t pid = header->credentials.pid;
    PeerProxy* peerProxy = NULL;
    peerLock(peer);
    peerProxy = hashmapGet(peer->peerProxies, &pid);
    peerUnlock(peer);
    if (peerProxy != NULL) {
        LOGI("Couldn't connect to %d.", pid);
        peerProxyKill(peerProxy, false);
    } else {
        LOGW("Peer proxy for %d not found. This shouldn't happen.", pid);
    }
    peerProxyExpectHeader(masterProxy);
}
static void masterProxyHandleConnectionError ( PeerProxy * masterProxy , Header * header ) { Peer * peer = masterProxy -> peer ; pid_t pid = header -> credentials . pid ; PeerProxy * peerProxy = NULL ; peerLock ( peer ) ; peerProxy = hashmapGet ( peer -> peerProxies , & pid ) ; peerUnlock ( peer ) ; if ( peerProxy != NULL ) { LOGI ( " " , pid ) ; peerProxyKill ( peerProxy , false ) ; } else { LOGW ( " " , pid ) ; } peerProxyExpectHeader ( masterProxy ) ; }
The master told us this peer is dead.
The master told us this peer is dead .
// Look up the peer proxy.