]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Fix warning during launcher compilation
authorPhillip Berndt <phillip.berndt@googlemail.com>
Mon, 4 May 2020 07:20:49 +0000 (09:20 +0200)
committerPhillip Berndt <phillip.berndt@googlemail.com>
Mon, 4 May 2020 07:20:49 +0000 (09:20 +0200)
contrib/autorandr_launcher/autorandr_launcher.c

index 962a71b962e8cd549be4a5b12fd2c5fa04cc9b8a..385d16f9370a5acffa5499e55b6c01af145a8860 100644 (file)
@@ -108,7 +108,10 @@ int main(int argc, char **argv)
                sigaction(SIGTERM, &sa, NULL);
                sigaction(SIGQUIT, &sa, NULL);
                signal(SIGHUP, SIG_IGN);
-               daemon(0, 0);
+               if (daemon(0, 0)) {
+                       fprintf(stderr, "Failed to daemonize!\n");
+                       exit(1);
+               }
        }
 
        int screenNum;