As this function shall be called in a signal handler, it shouldn't use
'exit' as it's not async-thread-safe.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
#include <signal.h>
#include <string.h>
#include <stdarg.h>
+#include <unistd.h>
#include <gnutls/gnutls.h>
#include <gnutls/pkcs11.h>
} else {
if (!sigonly) {
if (WEXITSTATUS(status) == 77)
- exit(77);
+ _exit(77);
fail("Child died with status %d\n",
WEXITSTATUS(status));
}