Age | Commit message (Collapse) | Author |
|
OK jmc@
|
|
Align our exit statuses with those of GNU timeout in the execvp(3)
failure case. Exit with 127 if the utility is not found. Exit with
126 if we cannot execute the utility for any other reason.
While here, the child should _exit(2) instead of calling exit(3) via
err(3).
Update the manpage accordingly.
With input from millert@ and deraadt@.
Link: https://marc.info/?l=openbsd-tech&m=169739592322978&w=2
ok millert@
|
|
|
|
we used "signal", as per pkill/pgrep; also lift the descriptive text
from kill.1 to clarify that both signal name and number are accepted;
ok sobrado job
|
|
|
|
Align with upcoming POSIX spec: https://www.austingroupbugs.net/view.php?id=1586
OK jmc@
|
|
A few programs used the plural in their synopsis which doesn't read as
clear as the obvious triple-dot notation.
mdoc(7) .Ar defaults to "file ..." if no arguments are given and consistent
use of 'arg ...' matches that behaviour.
Cleanup a few markups of the same argument so the text keeps reading
naturally; omit unhelpful parts like 'if optional arguments are given,
they are passed along' for tools like time(1) and timeout(1) that obviously
execute commands with whatever arguments where given -- just like doas(1)
which doesn't mention arguments in its DESCRIPTION in the first place.
For expr(1) the difference between 'expressions' and 'expression ...' is
crucial, as arguments must be passed as individual words.
Feedback millert jmc schwarze deraadt
OK jmc
|
|
timeout.c's parse_signal() basically does what kill.c's signame_to_num()
does, except it expects "SIG" in string signals.
Borrow the isalpha() check from kill.c to get the same behaviour.
OK deraadt
|
|
|
|
* simplify and shorten EXIT STATUS, no change with respect to the meaning
* cut down HISTORY to the usual amount of information
feedback deraadt@ and jmc@; OK deraadt@; OK jmc@ on an earlier version
|
|
* no need to check suffix != NULL twice in a row
* style: *(suffix + 1) -> suffix[1]
feedback & OK deraadt@
|
|
options from SYNOPSIS/usage;
diff from leon fischer
the opening sentence is mine - i say that not to take credit, just to
distinguish that leon did not agree with wording
|
|
there is no need to check if the return value is -1. just
unconditionally call err(3).
ok deraadt@ schwarze@
|
|
|
|
|
|
Feedback from deraadt@
|
|
|
|
|
|
Also rename 'end' to 'suffix' for readability.
OK beck@
|
|
|
|
|
|
ok job
|
|
Contribution from Anton Lindqvist
|
|
Feedback from deraadt@
|
|
Feedback from deraadt@
|
|
Feedback from deraadt@
|
|
Feedback from deraadt@
|
|
Feedback from deraadt@
|
|
The timeout(1) utility can be used to run commands with a time limit.
OK deraadt@ beck@
|