]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
waipid: print error message without pids
authorThomas Weißschuh <thomas@t-8ch.de>
Sat, 11 Feb 2023 04:24:41 +0000 (04:24 +0000)
committerThomas Weißschuh <thomas@t-8ch.de>
Sat, 11 Feb 2023 04:24:41 +0000 (04:24 +0000)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
misc-utils/waitpid.c

index 87dc6a110b6b2897bbb4d5401f50f740be6f2c79..0a66d549237337dcef89320c5afb763a663215c6 100644 (file)
@@ -218,7 +218,7 @@ int main(int argc, char **argv)
        pid_idx = parse_options(argc, argv);
        n_pids = argc - pid_idx;
        if (!n_pids)
-               return EXIT_FAILURE;
+               errx(EXIT_FAILURE, _("no PIDs specified"));
 
        pid_t *pids = parse_pids(argc - pid_idx, argv + pid_idx);