| #
f2d4de93 |
| 13-Dec-2022 |
kre <kre@NetBSD.org> |
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
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.
show more ...
|
| #
72c3b098 |
| 02-Aug-2014 |
martin <martin@NetBSD.org> |
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=convers
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
show more ...
|