Having done fdopen() on a couple of file descriptors, we then need to
use fclose() to close them rather than close().
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
}
/* parent */
- if (close(child_out[0]) == -1) {
- close(child_in[1]);
+ if (fclose(pipe_out) == -1) {
+ fclose(pipe_in);
notice("error closing pipe?!? for child OUT[0]");
return NOT_AUTHENTICATED;
}
/* parent */
- if (close(child_in[1]) == -1) {
+ if (fclose(pipe_in) == -1) {
notice("error closing pipe?!? for child IN[1]");
return NOT_AUTHENTICATED;
}