summaryrefslogtreecommitdiff
path: root/usr.bin/timeout
AgeCommit message (Collapse)Author
2024-06-16Add note about timeout(1)'s standards complianceJob Snijders
OK jmc@
2023-11-03timeout(1): align execvp(3) failure statuses with GNU timeoutScott Soule Cheloha
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@
2023-01-13timeout(1): sig_atomic_t variables must also be 'volatile'; ok job@Scott Soule Cheloha
2023-01-12diff from sobrado to use a full argument name for -s: after some discussionJason McIntyre
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
2023-01-10oops, fix a bad edit in previous;Jason McIntyre
2023-01-10Add short options for --foreground and --preserve-statusJob Snijders
Align with upcoming POSIX spec: https://www.austingroupbugs.net/view.php?id=1586 OK jmc@
2022-12-22Denote multiple arguments with 'arg ...' not 'args'Klemens Nanni
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
2022-07-02Make -s accept HUP like kill(1) and GNU timeout(1) doKlemens Nanni
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
2022-01-12zap spaces before tabsTheo Buehler
2021-09-04* avoid the misleading wording "second kill signal"Ingo Schwarze
* 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
2021-09-04* more specific error messagesIngo Schwarze
* no need to check suffix != NULL twice in a row * style: *(suffix + 1) -> suffix[1] feedback & OK deraadt@
2021-09-02various improvements to the text/usage, chiefly removing alternative longJason McIntyre
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
2021-09-02timeout(1): execvp(2) does not return except on errorSebastien Marie
there is no need to check if the return value is -1. just unconditionally call err(3). ok deraadt@ schwarze@
2021-09-02move comment into correct placeTheo de Raadt
2021-09-02bunch of err() should be errx()Theo de Raadt
2021-09-02No need to list foreign source code repository tagsJob Snijders
Feedback from deraadt@
2021-09-02some functionality requires pledge "proc"Theo de Raadt
2021-09-01Add the NetBSD source code repository tag back to help future historiansJob Snijders
2021-09-01Fix overflow / underflow check by moving it up before the returnJob Snijders
Also rename 'end' to 'suffix' for readability. OK beck@
2021-09-01Update project tag line, shorten some err() callsJob Snijders
2021-09-01small unused/initialization improvementsTheo de Raadt
2021-09-01repair strtonum idiom and improve error messagingTheo de Raadt
ok job
2021-09-01Style nitsJob Snijders
Contribution from Anton Lindqvist
2021-09-01Case h is pointlessJob Snijders
Feedback from deraadt@
2021-09-01Fix indentingJob Snijders
Feedback from deraadt@
2021-09-01Simplify code by replacing strtol() with strtonum()Job Snijders
Feedback from deraadt@
2021-09-01pledge() timeoutJob Snijders
Feedback from deraadt@
2021-09-01Remove sysexits.h reference and improve usage string.Job Snijders
Feedback from deraadt@
2021-09-01Import timeout(1) from NetBSDJob Snijders
The timeout(1) utility can be used to run commands with a time limit. OK deraadt@ beck@