mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-14 05:02:44 -04:00
Silence compiler warning about unused result of write()
This way we return a critical warning in the unlikely event of a write error.
This commit is contained in:
@@ -638,7 +638,8 @@ daemon_report_done (int status)
|
||||
guint64 counter;
|
||||
|
||||
counter = status + 1;
|
||||
write (daemon_event_fd, &counter, sizeof (counter));
|
||||
if (write (daemon_event_fd, &counter, sizeof (counter)) < 0)
|
||||
g_critical ("Unable to report exit status: %s", g_strerror (errno));
|
||||
|
||||
daemon_event_fd = -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user