diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-06-20T09·55+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-06-20T09·55+0200 |
commit | 22144afa8d9f8968da351618a1347072a93bd8aa (patch) | |
tree | f0ebe5edf3a480a9d9afd637b9056e352e049541 /src/libutil/util.cc | |
parent | 2b29e4b8529ec9f4d6904a5142266c02d1b24c99 (diff) |
Don't keep "disabled" substituters running
For instance, it's pointless to keep copy-from-other-stores running if there are no other stores, or download-using-manifests if there are no manifests. This also speeds things up because we don't send queries to those substituters.
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r-- | src/libutil/util.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc index e67568b1a78d..b1231e45574f 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -790,6 +790,7 @@ void Pid::kill() int Pid::wait(bool block) { + assert(pid != -1); while (1) { int status; int res = waitpid(pid, &status, block ? 0 : WNOHANG); |