diff options
| author | christos <christos@NetBSD.org> | 2020-08-31 15:32:15 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2020-08-31 15:32:15 +0000 |
| commit | 7a31bd1f2ded3f6c9069f8aba6900762a6df3a53 (patch) | |
| tree | 2a3216c0f14b08553b50b8b6cff1ddf4273753e1 /usr.bin/script/script.c | |
| parent | 0792833dd9c91de126ea65c3d91d8a54d0259114 (diff) | |
Unlike done() childwait() returns, found by clang.
Diffstat (limited to 'usr.bin/script/script.c')
| -rw-r--r-- | usr.bin/script/script.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c index 74a82b1446b..0c60922d0d8 100644 --- a/usr.bin/script/script.c +++ b/usr.bin/script/script.c @@ -1,4 +1,4 @@ -/* $NetBSD: script.c,v 1.27 2020/08/28 17:10:15 christos Exp $ */ +/* $NetBSD: script.c,v 1.28 2020/08/31 15:32:15 christos Exp $ */ /* * Copyright (c) 1980, 1992, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1992, 1993\ #if 0 static char sccsid[] = "@(#)script.c 8.1 (Berkeley) 6/6/93"; #endif -__RCSID("$NetBSD: script.c,v 1.27 2020/08/28 17:10:15 christos Exp $"); +__RCSID("$NetBSD: script.c,v 1.28 2020/08/31 15:32:15 christos Exp $"); #endif /* not lint */ #include <sys/types.h> @@ -206,7 +206,6 @@ main(int argc, char *argv[]) (void)write(master, ibuf, cc); } childwait(); - /* NOTREACHED */ return EXIT_SUCCESS; } @@ -269,6 +268,7 @@ dooutput(void) (void)fflush(fscript); } childwait(); + exit(EXIT_SUCCESS); } static void |
