Commit c73a1d3f authored by Dave Airlie's avatar Dave Airlie

vtest: ignore SIGCHLD

this allows us to ignore the death of the child process
and avoid zombies.
parent 54d8c087
#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;
sa.sa_flags = 0;
if (sigaction(SIGCHLD, &sa, 0) == -1) {
sock = vtest_open_socket("/tmp/.virgl_test");
new_fd = wait_for_socket_accept(sock);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment