summaryrefslogtreecommitdiff
path: root/tests/record-retvals.c
diff options
context:
space:
mode:
authorAlexander Sosedkin <asosedkin@redhat.com>2021-08-27 17:02:51 +0200
committerAlexander Sosedkin <asosedkin@redhat.com>2021-08-27 17:12:53 +0200
commitc4017e1c298139134f8bcf781baee9f85b489377 (patch)
treea18dfcee6487febff2bdfc15d4af371e8f0850d2 /tests/record-retvals.c
parentf3b6739f4d243084ff402dfa2c28455487104bb3 (diff)
downloadgnutls-c4017e1c298139134f8bcf781baee9f85b489377.tar.gz
tests: don't kill whole pgroups
`terminate()` executed from the child process results in a `kill(0, SIGTERM)`, bringing the whole pgroup down. `exit(1)` should be called instead. Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
Diffstat (limited to 'tests/record-retvals.c')
-rw-r--r--tests/record-retvals.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/record-retvals.c b/tests/record-retvals.c
index 84328b9652..73f038c0c9 100644
--- a/tests/record-retvals.c
+++ b/tests/record-retvals.c
@@ -182,12 +182,12 @@ static void client(int fd, const char *prio, int ign)
if (ret < 0) {
fail("server (%s): Error sending %d byte packet: %s\n", prio, i, gnutls_strerror(ret));
- terminate();
+ exit(1);
}
if (ret > 0 && ret != (int)i) {
fail("server (%s): Error sending %d byte packet: sent: %d\n", prio, i, ret);
- terminate();
+ exit(1);
}
}