From 49fe9592a47e7819179c2de4fd6068e897e944c7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 23 Jul 2014 19:21:00 +0200 Subject: nix-daemon: Use a thread instead of SIGPOLL to catch client disconnects The thread calls poll() to wait until a HUP (or other error event) happens on the client connection. If so, it sends SIGINT to the main thread, which is then cleaned up normally. This is much nicer than messing around with SIGPOLL. --- local.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'local.mk') diff --git a/local.mk b/local.mk index 6361e1872..cb628fac6 100644 --- a/local.mk +++ b/local.mk @@ -5,6 +5,7 @@ endif dist-files += configure config.h.in nix.spec GLOBAL_CXXFLAGS += -I . -I src -I src/libutil -I src/libstore -I src/libmain -I src/libexpr +GLOBAL_LDFLAGS += -pthread $(foreach i, config.h $(call rwildcard, src/lib*, *.hh), $(eval $(call install-file-in, $(i), $(includedir)/nix, 0644))) -- cgit v1.2.3