summaryrefslogtreecommitdiff
path: root/vtest
diff options
context:
space:
mode:
Diffstat (limited to 'vtest')
-rw-r--r--vtest/vtest_server.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/vtest/vtest_server.c b/vtest/vtest_server.c
index 0a2ee9a..51d7dc7 100644
--- a/vtest/vtest_server.c
+++ b/vtest/vtest_server.c
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <signal.h>
#include <stdbool.h>
#include <unistd.h>
#include <stdlib.h>
@@ -143,6 +144,16 @@ int main(void)
{
int sock, new_fd, ret;
pid_t pid;
+ struct sigaction sa;
+
+ sa.sa_handler = SIG_IGN;
+ sigemptyset(&sa.sa_mask);
+ sa.sa_flags = 0;
+ if (sigaction(SIGCHLD, &sa, 0) == -1) {
+ perror(0);
+ exit(1);
+ }
+
sock = vtest_open_socket("/tmp/.virgl_test");
restart:
new_fd = wait_for_socket_accept(sock);