Re: time(1): Return value and sys/wait.h macros
On 02-Aug-03, 16:52 (CDT), Dirk Eddelbuettel <email@example.com> 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
You might expand a litte:
command returns when the program exits, stops, or is terminated by the signal.
If the program exited normally, the return value of
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.
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