Index: metacity-2.28.0/src/core/main.c
===================================================================
--- metacity-2.28.0.orig/src/core/main.c
+++ metacity-2.28.0/src/core/main.c
@@ -377,7 +377,8 @@ sigterm_handler (int signum)
 {
   if (sigterm_pipe_fds[1] >= 0)
     {
-      write (sigterm_pipe_fds[1], "", 1);
+      if (write (sigterm_pipe_fds[1], "", 1))
+        { /* Ignoring of write() return value is safe here. */ }
       close (sigterm_pipe_fds[1]);
       sigterm_pipe_fds[1] = -1;
     }
