diff options
author | Alexander Sosedkin <asosedkin@redhat.com> | 2021-08-27 17:02:51 +0200 |
---|---|---|
committer | Alexander Sosedkin <asosedkin@redhat.com> | 2021-08-27 17:12:53 +0200 |
commit | c4017e1c298139134f8bcf781baee9f85b489377 (patch) | |
tree | a18dfcee6487febff2bdfc15d4af371e8f0850d2 /tests/dtls-rehandshake-anon.c | |
parent | f3b6739f4d243084ff402dfa2c28455487104bb3 (diff) | |
download | gnutls-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/dtls-rehandshake-anon.c')
-rw-r--r-- | tests/dtls-rehandshake-anon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/dtls-rehandshake-anon.c b/tests/dtls-rehandshake-anon.c index e102a54b3e..12f432387a 100644 --- a/tests/dtls-rehandshake-anon.c +++ b/tests/dtls-rehandshake-anon.c @@ -145,7 +145,7 @@ static void client(int fd, int server_init) if (ret < 0) { fail("2nd client gnutls_handshake: %s\n", gnutls_strerror(ret)); - terminate(); + exit(1); } } else { do { |