1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-22 06:50:18 +03:00

async: voidify call of fsync()

Fixes CID#1564787.

(cherry picked from commit b0e5cde687dacf885e4000da804ddcd900a83152)
This commit is contained in:
Yu Watanabe 2025-02-19 02:34:13 +09:00 committed by Luca Boccassi
parent f45b42ea5d
commit dce29c0c5f

View File

@ -49,7 +49,7 @@ int asynchronous_fsync(int fd, pid_t *ret_pid) {
return r;
if (r == 0) {
/* Child process */
fsync(fd);
(void) fsync(fd);
_exit(EXIT_SUCCESS);
}