#
836e5e93 |
| 09-May-2023 |
hgutch <hgutch@NetBSD.org> |
Reset SIGCHLD handler to SIG_DFL.
If run with "-c", both child and parent script processes will handle SIGCHLD resulting in a possible duplicate "Script done" line in the output. This fixes bin/545
Reset SIGCHLD handler to SIG_DFL.
If run with "-c", both child and parent script processes will handle SIGCHLD resulting in a possible duplicate "Script done" line in the output. This fixes bin/54514.
show more ...
|
#
32f08325 |
| 13-Feb-2022 |
christos <christos@NetBSD.org> |
1. restore the previous finish() logic to make: script -e -c /usr/bin/true script -e -c /usr/bin/false exit with the proper exit code. 2. handle system return value correctly (nabijaczleweli) 3.
1. restore the previous finish() logic to make: script -e -c /usr/bin/true script -e -c /usr/bin/false exit with the proper exit code. 2. handle system return value correctly (nabijaczleweli) 3. factor out the conversion of wait status -> shell return code.
show more ...
|
#
6800db9a |
| 12-Feb-2022 |
rillig <rillig@NetBSD.org> |
script: declare dooutput as __dead
This fixes the Clang build, which failed with:
usr.bin/script/script.c:255:1: error: function 'dooutput' could be declared with attribute 'noreturn' [-Wer
script: declare dooutput as __dead
This fixes the Clang build, which failed with:
usr.bin/script/script.c:255:1: error: function 'dooutput' could be declared with attribute 'noreturn' [-Werror,-Wmissing-noreturn]
show more ...
|
#
c3c5452e |
| 11-Feb-2022 |
christos <christos@NetBSD.org> |
PR/56254: RVP: Don't call non-async-signal-safe functions from signal handlers. Establish a non-restart signal handler to avoid blocking in long I/Os.
|
#
05daad62 |
| 20-Jan-2022 |
christos <christos@NetBSD.org> |
dooutput can return if finish() does not find a chile process.
|
#
eaea20be |
| 16-Jan-2022 |
christos <christos@NetBSD.org> |
If -e is specified exit with the exit status of the child process in a shell-like format (nabijaczleweli)
|
#
ac669aab |
| 31-Aug-2020 |
christos <christos@NetBSD.org> |
Unlike done() childwait() returns, found by clang.
|
#
573be1b9 |
| 28-Aug-2020 |
christos <christos@NetBSD.org> |
PR/55605: Soumendra Ganguly: Wait for child to finish when stdin is not a tty
|
#
22a44214 |
| 08-Aug-2020 |
christos <christos@NetBSD.org> |
PR/55551 Soumendra Ganguly: Simplify tcgetattr error handling.
|
#
503a97f9 |
| 07-Aug-2020 |
christos <christos@NetBSD.org> |
PR/55548: Soumendra Ganguly: Since isatty(3) is implemented using tcgetattr(3), call it directly to avoid calling it twice. This makes error handling more precise. Also don't call err(3) when tcsetat
PR/55548: Soumendra Ganguly: Since isatty(3) is implemented using tcgetattr(3), call it directly to avoid calling it twice. This makes error handling more precise. Also don't call err(3) when tcsetattr(3) fails.
show more ...
|
#
b131383e |
| 03-Aug-2020 |
christos <christos@NetBSD.org> |
remove trailing whitespace
|
#
4f5bb74d |
| 02-Aug-2020 |
christos <christos@NetBSD.org> |
PR/55531: Soumendra Ganguly: - add more error handling - handle -p when not a terminal - call termreset() before printing script done, so that it is printed correctly
Also: - use ssize_t/size_t inst
PR/55531: Soumendra Ganguly: - add more error handling - handle -p when not a terminal - call termreset() before printing script done, so that it is printed correctly
Also: - use ssize_t/size_t instead of int - use EXIT_SUCCESS/EXIT_FAILURE - check result of fork() against -1
show more ...
|
#
d1dee1a3 |
| 01-Aug-2020 |
christos <christos@NetBSD.org> |
PR/55529: Soumendra Ganguly: configure the terminal in raw mode during playback so that output postprocessing is not done and playback of programs using curses does not appear corrupted.
|
#
4d72fc90 |
| 06-Sep-2011 |
joerg <joerg@NetBSD.org> |
static + __dead
|
#
6f8a3444 |
| 08-Jun-2011 |
yamt <yamt@NetBSD.org> |
err -> errx where appropriate
|
#
949a1d1b |
| 17-Oct-2009 |
christos <christos@NetBSD.org> |
use system to parse args
|
#
ab107e38 |
| 17-Oct-2009 |
christos <christos@NetBSD.org> |
add more features found in other unices
|
#
6c108bbd |
| 13-Apr-2009 |
lukem <lukem@NetBSD.org> |
Fix WARNS=4 issues (-Wcast-qual -Wshadow)
|
#
98e5374c |
| 21-Jul-2008 |
lukem <lukem@NetBSD.org> |
Remove the \n and tabs from the __COPYRIGHT() strings. Tweak to use a consistent format.
|
#
c3b08dc4 |
| 09-Sep-2007 |
christos <christos@NetBSD.org> |
PR/36955: Ighighi: Use fseeko instead of fseek.
|
#
3f074821 |
| 20-Aug-2007 |
christos <christos@NetBSD.org> |
Apparently seeking forward on a FIFO does not work (why?). Read instead. Patch from Jukka Salmi.
|
#
c40c7432 |
| 19-Aug-2007 |
christos <christos@NetBSD.org> |
deal with non-regular files.
|
#
4511d329 |
| 14-Jun-2006 |
liamjfoy <liamjfoy@NetBSD.org> |
Fix PR: 26363: script core dumps on incorrect input files.
This patch virtually re-writes the playback code and contains improvements (mainly the dependency upon BUFSIZ being the same size as it was
Fix PR: 26363: script core dumps on incorrect input files.
This patch virtually re-writes the playback code and contains improvements (mainly the dependency upon BUFSIZ being the same size as it was wrote at).
OK: christos, joerg
show more ...
|
#
a0713f21 |
| 29-Mar-2006 |
rpaulo <rpaulo@NetBSD.org> |
ANSIfy. de-P.
|
#
f4128b31 |
| 13-Jul-2004 |
wiz <wiz@NetBSD.org> |
Add -d to usage; use getprogname(3). From Kouichirou Hiratsuka in PR 26227.
|