Skip to content

Commit

Permalink
Removed close when the appropriate open failed
Browse files Browse the repository at this point in the history
Signed-off-by: andreas@florath.net <andreas@florath.net>
  • Loading branch information
florath committed Oct 16, 2024
1 parent 70be7a1 commit acf97a9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/pipexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,6 @@ static void write_pid_file(char const *const pid_file) {
ITOCHAR(serrno, 16, errno);
logging(lid_internal, "tracing", "error", "Cannot open pid file", 2,
"error", strerror(errno), "errno", serrno);
close(fd);
return;
}
ssize_t const written = write(fd, pbuf, plen);
Expand Down

0 comments on commit acf97a9

Please sign in to comment.