aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-28 12:51:50 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-28 12:51:50 +0100
commitf3156eeeabe6be9cb4516096561de04a8767ebe3 (patch)
treef79f02671361cea40f59ac04d12844d1527cd77f /src
parentunlink socket on flock failure (diff)
downloadsat-f3156eeeabe6be9cb4516096561de04a8767ebe3.tar.gz
sat-f3156eeeabe6be9cb4516096561de04a8767ebe3.tar.bz2
sat-f3156eeeabe6be9cb4516096561de04a8767ebe3.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--src/satd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/satd.c b/src/satd.c
index 738872c..68ef34e 100644
--- a/src/satd.c
+++ b/src/satd.c
@@ -59,7 +59,7 @@ create_socket(struct sockaddr_un *address)
char *dir;
int saved_errno;
- /* Get scoket address. */
+ /* Get socket address. */
dir = getenv("XDG_RUNTIME_DIR"), dir = (dir ? dir : "/run");
t (snprintf(NULL, 0, "%s/satd.socket%zn", dir, &len) == -1);
if ((len < 0) || ((size_t)len >= sizeof(address->sun_path)))
@@ -141,6 +141,9 @@ main(int argc, char *argv[])
close(sock), sock = 3;
}
+ /* Get hook-script pathname. */
+ /* TODO */
+
/* Listen for incoming conections. */
#if SOMAXCONN < SATD_BACKLOG
t (listen(sock, SOMAXCONN));