Home | History | Annotate | Download | only in timeout
History log of /src/usr.bin/timeout/timeout.c
RevisionDateAuthorComments
 1.5  13-Dec-2022  kre POSIX is addint this utility in Issue 8 (whenever it appears). However
they do not specify "long" options (ever). The --preserve and --foreground
options in this utility had no short form, so they "invented" -p and -f
so only standard form one char options needed to be specified.

Change the opt processing here so -p == --preserve and -f == --foreground
so we support the options POSIX will specify.

No other changes here, just adding those alternates for the options.
 1.4  05-Aug-2014  christos branches: 1.4.2; 1.4.6;
Fix overflow check. From Kamil Rytarowski.
 1.3  02-Aug-2014  martin Cast signal argument of kill(2) to int, as sig_atomic_t may be larger.
Avoids:
src/usr.bin/timeout/timeout.c:331:5: error: conversion to 'int' from 'sig_atomic_t' may alter its value [-Werror=conversion]
kill(pid, sig_term);
^
warning from gcc 4.8
 1.2  01-Aug-2014  christos PR/49053: Kamil Rytarowski: Import timeout(1) from FreeBSD
 1.1  01-Aug-2014  christos branches: 1.1.1;
Initial revision
 1.1.1.1  01-Aug-2014  christos import from FreeBSD
 1.4.6.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.6.1  05-Aug-2014  tls file timeout.c was added on branch tls-maxphys on 2014-08-20 00:05:04 +0000
 1.4.2.2  10-Aug-2014  tls Rebase.
 1.4.2.1  05-Aug-2014  tls file timeout.c was added on branch tls-earlyentropy on 2014-08-10 06:59:06 +0000

RSS XML Feed