diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-28 12:51:50 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-28 12:51:50 +0100 |
commit | f3156eeeabe6be9cb4516096561de04a8767ebe3 (patch) | |
tree | f79f02671361cea40f59ac04d12844d1527cd77f | |
parent | unlink socket on flock failure (diff) | |
download | sat-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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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)); |