summaryrefslogtreecommitdiff
path: root/tests/status-request.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/status-request.c')
-rw-r--r--tests/status-request.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/tests/status-request.c b/tests/status-request.c
index 2ab57727cd..0e62969ba9 100644
--- a/tests/status-request.c
+++ b/tests/status-request.c
@@ -51,8 +51,6 @@ int main()
#include "cert-common.h"
#include "utils.h"
-static void terminate(void);
-
/* This program tests that the client does not send the
* status request extension if GNUTLS_NO_EXTENSIONS is set.
*/
@@ -133,7 +131,6 @@ static void client(int fd, const char *prio)
if (ret < 0) {
fail("client: Handshake failed: %s\n", gnutls_strerror(ret));
- terminate();
} else {
if (debug)
success("client: Handshake was completed\n");
@@ -158,7 +155,6 @@ static void client(int fd, const char *prio)
goto end;
} else if (ret < 0) {
fail("client: Error: %s\n", gnutls_strerror(ret));
- terminate();
}
gnutls_bye(session, GNUTLS_SHUT_WR);
@@ -175,15 +171,6 @@ static void client(int fd, const char *prio)
}
-/* These are global */
-pid_t child;
-
-static void terminate(void)
-{
- kill(child, SIGTERM);
- exit(1);
-}
-
static void server(int fd, const char *prio)
{
int ret;
@@ -261,6 +248,7 @@ static void ch_handler(int sig)
static
void start(const char *prio)
{
+ pid_t child;
int fd[2];
int ret, status = 0;