summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Thurman <tthurman@gnome.org>2010-01-05 15:44:01 -0500
committerThomas Thurman <tthurman@gnome.org>2010-01-05 15:44:01 -0500
commit575f5204618acae7380305f35290f09ef1f8ac9f (patch)
treea900b5eb4937dddc81440b1b135a2cbe1474d356 /src
parentdf618c9e91d8440d93cf3fcb9a1750233513afec (diff)
downloadmetacity-575f5204618acae7380305f35290f09ef1f8ac9f.tar.gz
metacity-575f5204618acae7380305f35290f09ef1f8ac9f.tar.bz2
Throw away result of write(); it's not important
Diffstat (limited to 'src')
-rw-r--r--src/core/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 8ef856e..e7256c9 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -377,7 +377,9 @@ sigterm_handler (int signum)
{
if (sigterm_pipe_fds[1] >= 0)
{
- write (sigterm_pipe_fds[1], "", 1);
+ int dummy;
+
+ dummy = write (sigterm_pipe_fds[1], "", 1);
close (sigterm_pipe_fds[1]);
sigterm_pipe_fds[1] = -1;
}