summaryrefslogtreecommitdiff
path: root/tests/status-request.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2019-06-07 16:35:11 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2019-07-03 20:58:45 +0200
commit3bc136c2cc99236cc91394ac4aed7b3e5087d284 (patch)
treef9a0fd05986fe93eb38679987be03158064cf83c /tests/status-request.c
parent83ad5f262e03df876e50afee06a7763607ec5f55 (diff)
downloadgnutls-3bc136c2cc99236cc91394ac4aed7b3e5087d284.tar.gz
tests: status-request: cleanup
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
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;