diff options
author | Tim Rühsen <tim.ruehsen@gmx.de> | 2019-01-04 19:53:18 +0000 |
---|---|---|
committer | Tim Rühsen <tim.ruehsen@gmx.de> | 2019-01-04 19:53:18 +0000 |
commit | c9679d8ad6d4ba5e65d348ffaee3105823bb83ca (patch) | |
tree | 2b072a5b2e41ed38fbd052b73a07f1c7c54f21b8 /tests/prf.c | |
parent | b978a25de5ef06754bf94bdfb2e6442b7fb6f1fa (diff) | |
parent | 81f8d97b3486928048bb8ad701b4af62ddce9901 (diff) | |
download | gnutls-c9679d8ad6d4ba5e65d348ffaee3105823bb83ca.tar.gz |
Merge branch 'tmp-tests-fail-on-signals' into 'master'
tests: treat all signals as error
Closes #623
See merge request gnutls/gnutls!856
Diffstat (limited to 'tests/prf.c')
-rw-r--r-- | tests/prf.c | 3 |
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"); |