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 04ee740..24fa34e 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");
+               exit(EXIT_FAILURE);
        }
 
        impersonate_hmlanif = 1;
Impressum, Datenschutz