static void pipe_closed(int fd, short flags, void *arg) { opal_event_t *ev = (opal_event_t*)arg; /* no error here - we just want to terminate */ opal_event_free(ev); ORTE_ACTIVATE_JOB_STATE(NULL, ORTE_JOB_STATE_DAEMONS_TERMINATED); }
static void orte_iof_base_read_event_destruct(orte_iof_read_event_t* rev) { opal_event_free(rev->ev); if (0 <= rev->fd) { OPAL_OUTPUT_VERBOSE((20, orte_iof_base_framework.framework_output, "%s iof: closing fd %d for process %s", ORTE_NAME_PRINT(ORTE_PROC_MY_NAME), rev->fd, ORTE_NAME_PRINT(&rev->name))); close(rev->fd); rev->fd = -1; } }
static void mca_oob_tcp_send_snd_exe(int fd, short args, void* data) { orte_self_send_xfer_t *xfer = (orte_self_send_xfer_t*)data; mca_oob_tcp_peer_t *peer = xfer->peer; mca_oob_tcp_msg_t *msg = xfer->msg; /* release the event for re-use */ opal_event_free(xfer->ev); /* * Attempt to match against posted receive */ mca_oob_tcp_msg_recv_complete(msg, peer); free(xfer); }
static void orte_iof_base_write_event_destruct(orte_iof_write_event_t* wev) { opal_event_free(wev->ev); if (ORTE_PROC_IS_HNP && NULL != orte_xml_fp) { int xmlfd = fileno(orte_xml_fp); if (xmlfd == wev->fd) { /* don't close this one - will get it later */ OBJ_DESTRUCT(&wev->outputs); return; } } if (2 < wev->fd) { OPAL_OUTPUT_VERBOSE((20, orte_iof_base_framework.framework_output, "%s iof: closing fd %d for write event", ORTE_NAME_PRINT(ORTE_PROC_MY_NAME), wev->fd)); close(wev->fd); } OBJ_DESTRUCT(&wev->outputs); }
static void orte_iof_base_read_event_destruct(orte_iof_read_event_t* rev) { orte_iof_proc_t *proct = (orte_iof_proc_t*)rev->proc; opal_event_free(rev->ev); if (0 <= rev->fd) { OPAL_OUTPUT_VERBOSE((20, orte_iof_base_framework.framework_output, "%s iof: closing fd %d for process %s", ORTE_NAME_PRINT(ORTE_PROC_MY_NAME), rev->fd, (NULL == proct) ? "UNKNOWN" : ORTE_NAME_PRINT(&proct->name))); close(rev->fd); rev->fd = -1; } if (NULL != rev->sink) { OBJ_RELEASE(rev->sink); } if (NULL != proct) { OBJ_RELEASE(proct); } }
static void launch_local_dest(orte_odls_launch_local_t *ptr) { opal_event_free(ptr->ev); }