From 701c9615d47fe8fd6ac8cf9fd05d58b0ffd5e0b8 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Mon, 12 Nov 2018 14:54:35 +0000 Subject: [PATCH] vtest: Use default socket name from protocol header Reviewed-by: Gurchetan Singh Signed-off-by: Jakob Bornecrantz --- vtest/vtest_server.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vtest/vtest_server.c b/vtest/vtest_server.c index 506ce49..d7f7c9b 100644 --- a/vtest/vtest_server.c +++ b/vtest/vtest_server.c @@ -172,6 +172,7 @@ int main(int argc, char **argv) pid_t pid; bool do_fork = true, loop = true; struct sigaction sa; + char *socket_name = VTEST_DEFAULT_SOCKET_NAME; #ifdef __AFL_LOOP while (__AFL_LOOP(1000)) { @@ -212,7 +213,7 @@ while (__AFL_LOOP(1000)) { } } - sock = vtest_open_socket("/tmp/.virgl_test"); + sock = vtest_open_socket(socket_name); restart: in_fd = wait_for_socket_accept(sock); out_fd = in_fd;