aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-28 12:32:52 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-28 12:32:52 +0100
commite9b3ea1a7a203ae88c60fbd128acb6b395925621 (patch)
tree63491193279d19e30bd86ca8e3cb8805cf7ab2f1 /src
parentfix errors + use flock on socket (diff)
downloadsat-e9b3ea1a7a203ae88c60fbd128acb6b395925621.tar.gz
sat-e9b3ea1a7a203ae88c60fbd128acb6b395925621.tar.bz2
sat-e9b3ea1a7a203ae88c60fbd128acb6b395925621.tar.xz
doc
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to 'src')
-rw-r--r--src/satd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/satd.c b/src/satd.c
index 33b1373..fe76516 100644
--- a/src/satd.c
+++ b/src/satd.c
@@ -90,6 +90,7 @@ does_not_exist:
t (fchmod(fd, S_IRWXU) == -1);
t (fchown(fd, getuid(), getgid()) == -1);
t (bind(fd, (struct sockaddr *)address, sizeof(*address)) == -1);
+ /* EADDRINUSE just means that the file already exists, not that it is actually used. */
/* Mark the socket as owned by a living process. */
t (flock(fd, LOCK_SH));