diff options
author | Drew DeVault <ddevault@linode.com> | 2016-04-29 11:04:21 -0400 |
---|---|---|
committer | Drew DeVault <ddevault@linode.com> | 2016-04-29 11:04:21 -0400 |
commit | c55ae9956b69979e3f7c504d2fb727c5d76198a2 (patch) | |
tree | 26797489855154db74a37b631f43a0d8be799551 | |
parent | 3be38674744c59bafe6cd249169884940a88fd55 (diff) |
Fix another -Wunused-result
-rw-r--r-- | swaybar/bar.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/swaybar/bar.c b/swaybar/bar.c index 94ed9dac..957e5bdf 100644 --- a/swaybar/bar.c +++ b/swaybar/bar.c @@ -24,7 +24,10 @@ static void bar_init(struct bar *bar) { static void spawn_status_cmd_proc(struct bar *bar) { if (bar->config->status_command) { int pipefd[2]; - pipe(pipefd); + if (pipe(pipefd) != 0) { + sway_log(L_ERROR, "Unable to create pipe for status_command fork"); + return; + } bar->status_command_pid = fork(); if (bar->status_command_pid == 0) { close(pipefd[0]); |