← Commit list

20872be9a

Glenn L McGrath
Glenn L McGrath
2003-11-18
FAILED Duration: 61s

Subject

Dont close original file handle, we may need it later.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

archival/libunarchive/open_transformer.c+4 -3
@@ -36,15 +36,16 @@ extern int open_transformer(int src_fd, int (*transformer)(int src_fd, int dst_f
if (pid == 0) {
/* child process */
- close(fd_pipe[0]); /* We don't wan't to read from the pipe */
+ close(fd_pipe[0]); /* We don't wan't to read from the parent */
transformer(src_fd, fd_pipe[1]);
close(fd_pipe[1]); /* Send EOF */
+ close(src_fd);
exit(0);
/* notreached */
}
+
/* parent process */
- close(fd_pipe[1]); /* Don't want to write down the pipe */
- close(src_fd);
+ close(fd_pipe[1]); /* Don't want to write to the child */
return(fd_pipe[0]);
}