diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-06-03 17:45:32 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-06-03 17:54:33 +0200 |
commit | 909f1260e269e354c86c833ffb4ca27c9fb135f4 (patch) | |
tree | ac9ef067f4cbbc917f18dcac17f47e5ef0994d9e | |
parent | 3bfa70b7963e12be346900e64ae45fa019850675 (diff) | |
download | guix-909f1260e269e354c86c833ffb4ca27c9fb135f4.tar.gz |
Rename 'initChild' to 'runChild'.
This is similar to commit b5ed5b6 in upstream Nix.
-rw-r--r-- | nix/libstore/build.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nix/libstore/build.cc b/nix/libstore/build.cc index 009fcb2c0c..ccffd8d7fb 100644 --- a/nix/libstore/build.cc +++ b/nix/libstore/build.cc @@ -764,7 +764,7 @@ private: typedef void (DerivationGoal::*GoalState)(); GoalState state; - /* Stuff we need to pass to initChild(). */ + /* Stuff we need to pass to runChild(). */ typedef map<Path, Path> DirsInChroot; // maps target path to source path DirsInChroot dirsInChroot; typedef map<string, string> Environment; @@ -828,8 +828,8 @@ private: /* Start building a derivation. */ void startBuilder(); - /* Initialise the builder's process. */ - void initChild(); + /* Run the builder's process. */ + void runChild(); friend int childEntry(void *); @@ -1612,7 +1612,7 @@ void chmod_(const Path & path, mode_t mode) int childEntry(void * arg) { - ((DerivationGoal *) arg)->initChild(); + ((DerivationGoal *) arg)->runChild(); return 1; } @@ -1970,7 +1970,7 @@ void DerivationGoal::startBuilder() #endif { pid = fork(); - if (pid == 0) initChild(); + if (pid == 0) runChild(); } if (pid == -1) throw SysError("unable to fork"); @@ -1993,7 +1993,7 @@ void DerivationGoal::startBuilder() } -void DerivationGoal::initChild() +void DerivationGoal::runChild() { /* Warning: in the child we should absolutely not make any SQLite calls! */ |