$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
From: kbelco_at_[hidden]
Date: 2007-09-17 23:27:51
Author: noel_belcourt
Date: 2007-09-17 23:27:48 EDT (Mon, 17 Sep 2007)
New Revision: 39361
URL: http://svn.boost.org/trac/boost/changeset/39361
Log:
A minor optimization to eliminate two OS calls (one
to times, one to kill).  Now all expired processes
are killed in one place.  If the select command
times out, I set each processes start_time to zero
to ensure it is picked up as an expired process.
Text files modified: 
   trunk/tools/jam/src/execunix.c |     5 +----                                   
   1 files changed, 1 insertions(+), 4 deletions(-)
Modified: trunk/tools/jam/src/execunix.c
==============================================================================
--- trunk/tools/jam/src/execunix.c	(original)
+++ trunk/tools/jam/src/execunix.c	2007-09-17 23:27:48 EDT (Mon, 17 Sep 2007)
@@ -433,10 +433,7 @@
         if (0 == ret) {
             /* select timed out, all processes have expired, kill them */
             for (i=0; i<globs.jobs; ++i) {
-                if (0 < cmdtab[i].pid) {
-                    clock_t current = times(&buf);
-                    kill(cmdtab[i].pid, SIGKILL);
-                }
+                cmdtab[i].start_time = 0;
             }
             /* select will wait until io on a descriptor or a signal */
             populate_file_descriptors(&fd_max, &fds);