citrun

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

commit 6e84ee383fd7471f3e2e29c7f34bf56fc22355b3
parent 07a7ab56fb3e3e45789d58579ec852717932d928
Author: Kyle Milz <kyle@0x30.net>
Date:   Wed, 22 Jun 2016 20:25:56 -0600

lib: only call settle() once

Diffstat:
Mlib/runtime.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/runtime.c b/lib/runtime.c @@ -189,6 +189,9 @@ control_thread(void *arg) addr.sun_family = AF_UNIX; strlcpy(addr.sun_path, viewer_sock, sizeof(addr.sun_path)); + /* Make sure the translation unit linked list is consistent. */ + settle(); + while (1) { if (connect(fd, (struct sockaddr *)&addr, sizeof(addr))) { warn("connect"); @@ -196,8 +199,6 @@ control_thread(void *arg) continue; } - settle(); - /* Send static information first. */ send_metadata(fd);