Date: Sat, 1 Feb 2020 01:13:51 -0800 From: Pawel Jakub Dawidek <pawel@dawidek.net> To: Jilles Tjoelker <jilles@stack.nl>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r357138 - head/bin/pwait Message-ID: <4583631f-13ed-b251-b595-d76eb0e3739d@dawidek.net> In-Reply-To: <6cb2e1c2-f81d-7e06-80a3-a0d7fee00c6a@stack.nl> References: <202001261049.00QAnORw063681@repo.freebsd.org> <6cb2e1c2-f81d-7e06-80a3-a0d7fee00c6a@stack.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On 1/30/20 14:47, Jilles Tjoelker wrote: > On 26-01-2020 11:49, Pawel Jakub Dawidek wrote: >> Author: pjd >> Date: Sun Jan 26 10:49:24 2020 >> New Revision: 357138 >> URL: https://svnweb.freebsd.org/changeset/base/357138 >> >> Log: >> - Be consistent with using sysexits(3) codes. >> - Turn fprintf()+exit() into errx(). >> Sponsored by: Fudo Security >> >> Modified: >> head/bin/pwait/pwait.c >> >> Modified: head/bin/pwait/pwait.c >> ============================================================================== >> >> --- head/bin/pwait/pwait.c Sun Jan 26 07:24:49 2020 (r357137) >> +++ head/bin/pwait/pwait.c Sun Jan 26 10:49:24 2020 (r357138) >> @@ -53,8 +53,7 @@ static void >> usage(void) >> { >> - fprintf(stderr, "usage: pwait [-t timeout] [-v] pid ...\n"); >> - exit(EX_USAGE); >> + errx(EX_USAGE, "usage: pwait [-t timeout] [-v] pid ..."); > > This adds a "pwait: " before the line, which most other programs do not do. > Reverted in r357362. Thanks. -- Pawel Jakub Dawidek
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4583631f-13ed-b251-b595-d76eb0e3739d>