various: don't use close_nointr if retval is not checked anyway

This commit is contained in:
Mike Yuan
2023-12-28 20:44:01 +08:00
parent 1189815a6b
commit da6c52c57c
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -3,6 +3,7 @@
#include <errno.h>
#include <fcntl.h>
#include <stddef.h>
#include <unistd.h>
#include "sd-daemon.h"
@@ -71,7 +72,7 @@ void fdset_close(FDSet *s) {
log_debug("Closing set fd %i (%s)", fd, strna(path));
}
(void) close_nointr(fd);
(void) close(fd);
}
}