From 821a1c2fe9a8a7af056d6b75b28ad9068cee27f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 19 May 2014 16:52:27 +0200 Subject: [PATCH] qrexec-lib: use _exit in child process to not fire atexit hooks Otherwise it would remove qrexec socket. --- qrexec-lib/write-stdin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrexec-lib/write-stdin.c b/qrexec-lib/write-stdin.c index 40a18c1..3bd5922 100644 --- a/qrexec-lib/write-stdin.c +++ b/qrexec-lib/write-stdin.c @@ -131,5 +131,5 @@ int fork_and_flush_stdin(int fd, struct buffer *buffer) close(i); set_block(fd); write_all(fd, buffer_data(buffer), buffer_len(buffer)); - exit(0); + _exit(0); }