summaryrefslogtreecommitdiff
path: root/tests/prf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/prf.c')
-rw-r--r--tests/prf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/prf.c b/tests/prf.c
index 78526cfba8..ff839fe73c 100644
--- a/tests/prf.c
+++ b/tests/prf.c
@@ -41,6 +41,7 @@ int main(int argc, char **argv)
#include <sys/wait.h>
#include <arpa/inet.h>
#include <unistd.h>
+#include <signal.h>
#include <gnutls/gnutls.h>
#include <gnutls/dtls.h>
@@ -423,6 +424,8 @@ static void start(void)
int fd[2];
int ret;
+ signal(SIGPIPE, SIG_IGN);
+
ret = socketpair(AF_UNIX, SOCK_STREAM, 0, fd);
if (ret < 0) {
perror("socketpair");