From 212e96f39c5120ef33b363647a58ebfd61fb3f5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Fri, 5 Jul 2013 22:21:04 +0200 Subject: Leave `HAVE_HUP_NOTIFICATION' undefined on GNU/Hurd. --- src/nix-daemon/nix-daemon.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc index 6b5dd7e5a..a6f29b7c9 100644 --- a/src/nix-daemon/nix-daemon.cc +++ b/src/nix-daemon/nix-daemon.cc @@ -25,8 +25,13 @@ using namespace nix; that lack it, we only notice the disconnection the next time we try to write to the client. So if you have a builder that never generates output on stdout/stderr, the daemon will never notice - that the client has disconnected until the builder terminates. */ -#ifdef O_ASYNC + that the client has disconnected until the builder terminates. + + GNU/Hurd does have O_ASYNC, but its Unix-domain socket translator + (pflocal) does not implement F_SETOWN. See + for + details.*/ +#if defined O_ASYNC && !defined __GNU__ #define HAVE_HUP_NOTIFICATION #ifndef SIGPOLL #define SIGPOLL SIGIO -- cgit v1.2.3