summaryrefslogtreecommitdiff
path: root/tests/tls13/supported_versions.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tls13/supported_versions.c')
-rw-r--r--tests/tls13/supported_versions.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tls13/supported_versions.c b/tests/tls13/supported_versions.c
index bb9c7b6b92..50ea986ca1 100644
--- a/tests/tls13/supported_versions.c
+++ b/tests/tls13/supported_versions.c
@@ -314,7 +314,7 @@ static void server(int fd)
static void ch_handler(int sig)
{
- int status;
+ int status = 0;
wait(&status);
check_wait_status(status);
return;
@@ -327,6 +327,7 @@ void doit(void)
pid_t child;
signal(SIGCHLD, ch_handler);
+ signal(SIGPIPE, SIG_IGN);
ret = socketpair(AF_UNIX, SOCK_STREAM, 0, fd);
if (ret < 0) {