diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/nix-daemon/Makefile.am | 12 | ||||
-rw-r--r-- | src/nix-daemon/nix-daemon.cc (renamed from src/nix-worker/nix-worker.cc) | 12 | ||||
-rw-r--r-- | src/nix-worker/Makefile.am | 9 |
4 files changed, 19 insertions, 16 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 25ae67996..0ae407c57 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,3 +1,3 @@ SUBDIRS = boost libutil libstore libmain nix-store nix-hash \ - libexpr nix-instantiate nix-env nix-worker nix-setuid-helper \ + libexpr nix-instantiate nix-env nix-daemon nix-setuid-helper \ nix-log2xml bsdiff-4.3 diff --git a/src/nix-daemon/Makefile.am b/src/nix-daemon/Makefile.am new file mode 100644 index 000000000..b8e9f4a06 --- /dev/null +++ b/src/nix-daemon/Makefile.am @@ -0,0 +1,12 @@ +bin_PROGRAMS = nix-daemon + +nix_daemon_SOURCES = nix-daemon.cc +nix_daemon_LDADD = ../libmain/libmain.la ../libstore/libstore.la ../libutil/libutil.la \ + ../boost/format/libformat.la + +AM_CXXFLAGS = \ + -I$(srcdir)/.. -I$(srcdir)/../libutil \ + -I$(srcdir)/../libstore -I$(srcdir)/../libmain + +install-exec-local: + ln -sf nix-daemon $(DESTDIR)$(bindir)/nix-worker diff --git a/src/nix-worker/nix-worker.cc b/src/nix-daemon/nix-daemon.cc index 833fc3518..6256258ec 100644 --- a/src/nix-worker/nix-worker.cc +++ b/src/nix-daemon/nix-daemon.cc @@ -25,7 +25,7 @@ using namespace nix; disconnects and immediately kill any ongoing builds. On platforms 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 worker will never notice + generates output on stdout/stderr, the daemon will never notice that the client has disconnected until the builder terminates. */ #ifdef O_ASYNC #define HAVE_HUP_NOTIFICATION @@ -677,7 +677,7 @@ static void processConnection() /* Prevent users from doing something very dangerous. */ if (geteuid() == 0 && querySetting("build-users-group", "") == "") - throw Error("if you run `nix-worker' as root, then you MUST set `build-users-group'!"); + throw Error("if you run `nix-daemon' as root, then you MUST set `build-users-group'!"); #endif /* Open the store. */ @@ -724,7 +724,7 @@ static void processConnection() assert(!canSendStderr); }; - printMsg(lvlError, format("%1% worker operations") % opCount); + printMsg(lvlError, format("%1% operations") % opCount); } @@ -858,7 +858,7 @@ static void daemonLoop() case 0: try { /* child */ - /* Background the worker. */ + /* Background the daemon. */ if (setsid() == -1) throw SysError(format("creating a new session")); @@ -907,8 +907,8 @@ void run(Strings args) void printHelp() { - showManPage("nix-worker"); + showManPage("nix-daemon"); } -string programId = "nix-worker"; +string programId = "nix-daemon"; diff --git a/src/nix-worker/Makefile.am b/src/nix-worker/Makefile.am deleted file mode 100644 index 6b1b2827c..000000000 --- a/src/nix-worker/Makefile.am +++ /dev/null @@ -1,9 +0,0 @@ -bin_PROGRAMS = nix-worker - -nix_worker_SOURCES = nix-worker.cc -nix_worker_LDADD = ../libmain/libmain.la ../libstore/libstore.la ../libutil/libutil.la \ - ../boost/format/libformat.la - -AM_CXXFLAGS = \ - -I$(srcdir)/.. -I$(srcdir)/../libutil \ - -I$(srcdir)/../libstore -I$(srcdir)/../libmain |