projects
/
deliverable
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix handling of sessiond respawn after a SIGKILL
[deliverable/lttng-tools.git]
/
liblttsessiondcomm
/
liblttsessiondcomm.c
diff --git
a/liblttsessiondcomm/liblttsessiondcomm.c
b/liblttsessiondcomm/liblttsessiondcomm.c
index 9313a34c5d57eba26190e0b07075dea2d7c1ab1b..e7e4204339d61dc0b1daa97cdadd3b1c6fd8033c 100644
(file)
--- a/
liblttsessiondcomm/liblttsessiondcomm.c
+++ b/
liblttsessiondcomm/liblttsessiondcomm.c
@@
-186,6
+186,8
@@
int lttcomm_create_unix_sock(const char *pathname)
sun.sun_family = AF_UNIX;
strncpy(sun.sun_path, pathname, strlen(pathname));
+ /* Unlink the old file if present */
+ (void) unlink(pathname);
ret = bind(fd, (struct sockaddr *) &sun, sizeof(sun));
if (ret < 0) {
perror("bind");
This page took
0.025216 seconds
and
5
git commands to generate.