svn commit: r357138 - head/bin/pwait

Jilles Tjoelker jilles at stack.nl
Thu Jan 30 22:47:24 UTC 2020


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.

-- 
Jilles Tjoelker


More information about the svn-src-head mailing list