Ludovic Courtès 1071f781d9
daemon: '--listen' can be passed several times, can specify TCP endpoints.
* nix/nix-daemon/guix-daemon.cc (DEFAULT_GUIX_PORT): New macro.
(listen_options): New variable.
(parse_opt): Push back '--listen' options to LISTEN_OPTIONS.
(open_unix_domain_socket, open_inet_socket)
(listening_sockets): New functions.
(main): Use it.  Pass SOCKETS to 'run'.
* nix/nix-daemon/nix-daemon.cc (matchUser): Remove.
(SD_LISTEN_FDS_START): Remove.
(acceptConnection): New function.
(daemonLoop): Rewrite to take a vector of file descriptors, to select(2)
on them, and to call 'acceptConnection'.
(run): Change to take a vector of file descriptors.
* tests/guix-daemon.sh: Add test.
2017-06-22 10:59:07 +02:00
..
2017-01-26 13:49:56 +01:00
2015-11-26 22:35:01 +01:00
2015-10-19 10:10:47 +02:00
2016-09-01 13:40:49 +03:00
2017-03-18 00:39:49 +01:00
2017-06-18 00:14:07 +02:00
2017-06-16 17:08:22 +02:00
2017-06-15 17:03:19 +02:00
2017-04-18 23:17:17 +02:00