citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 39657eb98c5500126bd9d5f28ab1e8a5be4ebc95
parent ed707775f291801c46a9519863ec8dbde68f18df
Author: Kyle Milz <kyle@getaddrinfo.net>
Date:   Sun,  3 Apr 2016 23:08:52 -0600

change default viewer listening socket

Diffstat:
Mlib/runtime.c | 2+-
Msrc/af_unix.cc | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/runtime.c b/lib/runtime.c @@ -50,7 +50,7 @@ control_thread(void *arg) /* The default socket location can be overridden */ if ((viewer_sock = getenv("SCV_VIEWER_SOCKET")) == NULL) /* There was an error getting the env var, use the default */ - viewer_sock = "/tmp/scv_viewer.socket"; + viewer_sock = "/tmp/citrun_gl.socket"; /* Connect the socket to the server */ memset(&addr, 0, sizeof(addr)); diff --git a/src/af_unix.cc b/src/af_unix.cc @@ -39,7 +39,7 @@ af_unix::set_listen() struct sockaddr_un addr; memset(&addr, 0, sizeof(addr)); addr.sun_family = AF_UNIX; - strncpy(addr.sun_path, "/tmp/scv_viewer.socket", sizeof(addr.sun_path) - 1); + strncpy(addr.sun_path, "/tmp/citrun_gl.socket", sizeof(addr.sun_path) - 1); if (bind(fd, (struct sockaddr *)&addr, sizeof(addr))) err(1, "bind"); @@ -121,5 +121,5 @@ af_unix::read_all(uint8_t *buf, size_t bytes_total) af_unix::~af_unix() { close(fd); - unlink("/tmp/scv_viewer.socket"); + unlink("/tmp/citrun_gl.socket"); }