commit b887c76fbf2f673f6777769965348106854e4fcb parent e55ce072fd1a3d4d1c6e1ee90c709fd5618c57b8 Author: Christos Margiolis <christos@margiolis.net> Date: Sat, 2 Apr 2022 01:18:51 +0300 errx instead of warnx Diffstat:
M | nfy.c | | | 6 | ++---- |
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/nfy.c b/nfy.c @@ -101,10 +101,8 @@ main(int argc, char *argv[]) argc -= optind; argv += optind; - if (isatty(STDIN_FILENO)) { - warnx("stdin is empty"); - return (0); - } + if (isatty(STDIN_FILENO)) + errx(1, "stdin is empty"); /* detach from tty */ if ((pid = fork()) < 0)