Fix warning from unused daemon return value

This commit is contained in:
Drew DeVault 2016-07-15 08:03:31 -04:00
parent 43c84e68a4
commit 91b7153dcf

5
main.c
View File

@ -425,7 +425,10 @@ int main(int argc, char **argv) {
show_indicator = false;
break;
case 'f':
daemon(0, 0);
if (daemon(0, 0) != 0) {
sway_log(L_ERROR, "daemon call failed");
exit(EXIT_FAILURE);
}
break;
default:
fprintf(stderr, "%s", usage);