chiark / gitweb /
logging: Use lg_exitstatus
[secnet.git] / udp.c
diff --git a/udp.c b/udp.c
index 6ac8e0f0c90087acdc594c18c02924fb4bbccbff..5a363e0f4c5d22fc6c4eca25cfa581813094127b 100644 (file)
--- a/udp.c
+++ b/udp.c
@@ -248,15 +248,8 @@ bool_t udp_make_socket(struct udpcommon *uc, struct udpsock *us,
            if (errno==EINTR) continue;
            FAIL("waitpid for authbind");
        }
-       if (WIFSIGNALED(status)) {
-           lg_perror(FAIL_LG,0,"authbind died on signal %s (%d)",
-                       strsignal(WTERMSIG(status)),WTERMSIG(status));
-           goto failed;
-       }
-       if (WIFEXITED(status) && WEXITSTATUS(status)!=0) {
-           lg_perror(FAIL_LG,0,
-                     "authbind died with error exit status %d",
-                     WEXITSTATUS(status));
+       if (status) {
+           lg_exitstatus(FAIL_LG,status,"authbind");
            goto failed;
        }
     } else {