Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/script dooutput can return if finish() does not find...



details:   https://anonhg.NetBSD.org/src/rev/d736ee94f5f7
branches:  trunk
changeset: 359747:d736ee94f5f7
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jan 20 19:49:51 2022 +0000

description:
dooutput can return if finish() does not find a chile process.

diffstat:

 usr.bin/script/script.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 0ac95758d44f -r d736ee94f5f7 usr.bin/script/script.c
--- a/usr.bin/script/script.c   Thu Jan 20 19:24:53 2022 +0000
+++ b/usr.bin/script/script.c   Thu Jan 20 19:49:51 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: script.c,v 1.29 2022/01/16 19:04:00 christos Exp $     */
+/*     $NetBSD: script.c,v 1.30 2022/01/20 19:49:51 christos Exp $     */
 
 /*
  * Copyright (c) 1980, 1992, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)script.c   8.1 (Berkeley) 6/6/93";
 #endif
-__RCSID("$NetBSD: script.c,v 1.29 2022/01/16 19:04:00 christos Exp $");
+__RCSID("$NetBSD: script.c,v 1.30 2022/01/20 19:49:51 christos Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -86,9 +86,9 @@
 static struct  termios tt;
 
 __dead static void     done(int);
-__dead static void     dooutput(void);
 __dead static void     doshell(const char *);
 __dead static void     fail(void);
+static void    dooutput(void);
 static void    finish(int);
 static void    scriptflush(int);
 static void    record(FILE *, char *, size_t, int);



Home | Main Index | Thread Index | Old Index