]> git.zerfleddert.de Git - hmcfgusb/commitdiff
sigaction-failure is fatal
authorMichael Gernoth <michael@gernoth.net>
Wed, 5 Jun 2013 12:13:30 +0000 (14:13 +0200)
committerMichael Gernoth <michael@gernoth.net>
Wed, 5 Jun 2013 12:13:30 +0000 (14:13 +0200)
hmland.c

index 04ee740c2855104e4b42eeb4f2c7cad221be2c72..24fa34e4c28925c674e6871fad856fecfc2eac2c 100644 (file)
--- a/hmland.c
+++ b/hmland.c
@@ -403,6 +403,7 @@ static int socket_server(int port, int daemon)
 
        if (sigaction(SIGPIPE, &sact, NULL) == -1) {
                perror("sigaction");
 
        if (sigaction(SIGPIPE, &sact, NULL) == -1) {
                perror("sigaction");
+               exit(EXIT_FAILURE);
        }
 
        impersonate_hmlanif = 1;
        }
 
        impersonate_hmlanif = 1;
Impressum, Datenschutz