*
* handle client-host side of Amanda network communications, including
* security checks, execution of the proper service, and acking the
*
* handle client-host side of Amanda network communications, including
* security checks, execution of the proper service, and acking the
error("dup %d to %d failed: %s\n", data_read[i + 1][1],
i + DATA_FD_OFFSET, strerror(errno));
}
error("dup %d to %d failed: %s\n", data_read[i + 1][1],
i + DATA_FD_OFFSET, strerror(errno));
}
aclose(data_read[i + 1][1]);
if (dup2(data_write[i + 1][0], i*2 + 1 + DATA_FD_OFFSET) < 0) {
aclose(data_read[i + 1][1]);
if (dup2(data_write[i + 1][0], i*2 + 1 + DATA_FD_OFFSET) < 0) {
i + DATA_FD_OFFSET, strerror(errno));
}
aclose(data_write[i + 1][0]);
i + DATA_FD_OFFSET, strerror(errno));
}
aclose(data_write[i + 1][0]);