delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/12/15/11:00:26

Date: 15 Dec 2000 16:00:19 -0000
Message-ID: <20001215160019.4536.qmail@tyr.diku.dk>
From: Morten Welinder <terra AT diku DOT dk>
To: djgpp-workers AT delorie DOT com
In-reply-to: <20001215094617.A23499@kendall.sfbr.org> (message from JT
Williams on Fri, 15 Dec 2000 09:46:17 -0600)
Subject: Re: purpose of fork() in GNU time 1.7
References: <20001215094617 DOT A23499 AT kendall DOT sfbr DOT org>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

   Could someone please explain the following section of code from GNU
   time-1.7?   What is the purpose of the `fork()' call when the command
   to be timed is later run by the `execvp' procedure?  Won't the rusage
   structure get updated just as well without the fork()?

Someone has to print them afterwards.

Morten

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019