about summary refs log tree commit diff
path: root/Src/signals.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2004-10-07 09:45:43 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2004-10-07 09:45:43 +0000
commitcc7274077564befa7426909e7c70f6de0169fa5e (patch)
tree30f3787cfc9bf3314c6fa9ea49229c6dd071020c /Src/signals.c
parent0f7a3eaca59794030cd09b4c4518f7d970351d9e (diff)
downloadzsh-cc7274077564befa7426909e7c70f6de0169fa5e.tar.gz
zsh-cc7274077564befa7426909e7c70f6de0169fa5e.tar.xz
zsh-cc7274077564befa7426909e7c70f6de0169fa5e.zip
20462: Use getrusage for timing again.
Time processes from before rather than after fork.
Diffstat (limited to 'Src/signals.c')
-rw-r--r--Src/signals.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/signals.c b/Src/signals.c
index 6c6c28159..df9120d2d 100644
--- a/Src/signals.c
+++ b/Src/signals.c
@@ -484,7 +484,7 @@ zhandler(int sig)
 			*procsubval = (0200 | WTERMSIG(status));
 		    else
 			*procsubval = WEXITSTATUS(status);
-		    times(&shtms);
+		    get_usage();
 		    goto cont;
 		}
 		if (!es)
@@ -514,7 +514,7 @@ zhandler(int sig)
 		 * children in sub processes anyway:  otherwise, this
 		 * will get added on to the next found process that terminates.
 		 */
-		times(&shtms);
+		get_usage();
 	    }
         }
         break;