diff options
author | Jakob Bornecrantz <jakob@collabora.com> | 2018-11-12 14:54:35 +0000 |
---|---|---|
committer | Jakob Bornecrantz <jakob@collabora.com> | 2018-11-12 17:51:52 +0000 |
commit | 33e8b04b67dd729f6bebb9e7d52f4f9270da43d4 (patch) | |
tree | 8d91a3535693eb3e6f26825bf6a4e7e417c2abc7 | |
parent | bb02ee0c09616a288f3a0a42bf08455cced6c429 (diff) |
vtest: Use default socket name from protocol headerjakob-socket-protoheader
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
-rw-r--r-- | vtest/vtest_server.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |