Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: script(1) bug?
I think script definitely has bugs that bear on this. I ran into a
different problem, script hanging, when running tests for some program,
I think bup, and semi-figured it out with help from the list.
I am carrying a local diff (in my netbsd-10 tree), at end. I am not
really suggesting that this specific patch addresses the issue, but I am
skeptical of script's sequencing/locking in general.
Index: usr.bin/script/script.c
===================================================================
RCS file: /cvsroot/src/usr.bin/script/script.c,v
retrieving revision 1.33
diff -u -p -r1.33 script.c
--- usr.bin/script/script.c 13 Feb 2022 19:40:14 -0000 1.33
+++ usr.bin/script/script.c 28 Aug 2026 11:43:27 -0000
@@ -357,7 +357,7 @@ done(int status)
if (!quiet)
(void)printf("Script done, output file is %s\n", fname);
}
- exit(status);
+ _exit(status);
}
static void
Home |
Main Index |
Thread Index |
Old Index