mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-22 07:35:25 -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:
1 parent
c741200fa5
commit
0a90e6ec3e
1 file changed
+2
-1
@@ -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