Ejemplo n.º 1
0
Archivo: pmi2.c Proyecto: cread/slurm
static int
_handle_finalize(int fd, int lrank, client_req_t *req)
{
	client_resp_t *resp;
	int rc = 0;

	resp = client_resp_new();
	client_resp_append(resp, CMD_KEY"="FINALIZERESP_CMD";"
			   RC_KEY"=%d;", rc);
	rc = client_resp_send(resp, fd);
	client_resp_free(resp);
	/* shutdown the PMI fd */
	shutdown(fd, SHUT_RDWR);
	close(fd);
	task_finalize(lrank);
	return rc;
}
Ejemplo n.º 2
0
static int
_handle_finalize(int fd, int lrank, client_req_t *req)
{
    client_resp_t *resp;
    int rc = 0;

    debug3("mpi/pmi2: in _handle_finalize");
    resp = client_resp_new();
    client_resp_append(resp, CMD_KEY"="FINALIZEACK_CMD" "
                       RC_KEY"=%d\n", rc);
    rc = client_resp_send(resp, fd);
    client_resp_free(resp);
    debug3("mpi/pmi2: out _handle_finalize");
    /* shutdown the PMI fd */
    shutdown(fd, SHUT_RDWR);
    close(fd);
    task_finalize(lrank);
    return rc;
}