[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: time(1): Return value and sys/wait.h macros



On 02-Aug-03, 16:52 (CDT), Dirk Eddelbuettel <edd@debian.org> wrote: 
> 
> .SH DIAGNOSTICS
> Upon termination,
> .B time 
> returns one of three possible return values depending on whether the program
> was stopped, interrupted, or exited normally. The return value is derived
> used the macros defined in
> .IR wait.h .
> 
> 
> Is that correct and good enough?  If not, any suggestion would be greatly
> appreciated. 

You might expand a litte:

.SH DIAGNOSTICS
The 
.B time
command returns when the program exits, stops, or is terminated by the signal.
If the program exited normally, the return value of 
.B time
is the return value of the program. Othewise, the return value is the 
number of the signal which caused the program to stop or terminate.


...Or some such. Sending people off to wait(2) is a bit much.

-- 
Steve Greenland
    The irony is that Bill Gates claims to be making a stable operating
    system and Linus Torvalds claims to be trying to take over the
    world.       -- seen on the net



Reply to: