Skip to content

Commit acf97a9

Browse files
committed
Removed close when the appropriate open failed
Signed-off-by: andreas@florath.net <andreas@florath.net>
1 parent 70be7a1 commit acf97a9

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/pipexec.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,6 @@ static void write_pid_file(char const *const pid_file) {
364364
ITOCHAR(serrno, 16, errno);
365365
logging(lid_internal, "tracing", "error", "Cannot open pid file", 2,
366366
"error", strerror(errno), "errno", serrno);
367-
close(fd);
368367
return;
369368
}
370369
ssize_t const written = write(fd, pbuf, plen);

0 commit comments

Comments
 (0)