]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
script: document SIGUSR1
authorKarel Zak <kzak@redhat.com>
Mon, 9 Dec 2019 15:10:02 +0000 (16:10 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 9 Dec 2019 15:10:02 +0000 (16:10 +0100)
Based on pull request: https://github.com/karelzak/util-linux/pull/815

Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/script.1

index 2da845fc716adc63e8018a111abe8fcf7fb3a2b6..82a8332982274a309845322ce540044dc405e6c3 100644 (file)
@@ -103,7 +103,8 @@ the child process is always stored in type script file too.
 \fB\-f\fR, \fB\-\-flush\fR
 Flush output after each write.  This is nice for telecooperation: one person
 does `mkfifo foo; script -f foo', and another can supervise real-time what is
-being done using `cat foo'.
+being done using `cat foo'.  Note that flush has an impact on performance, it's
+possible to use SIGUSR1 to flush logs on demand.
 .TP
 \fB\-\-force\fR
 Allow the default output destination, i.e. the typescript file, to be a hard
@@ -225,6 +226,12 @@ You should also avoid use of script in command pipes, as
 .B script
 can read more input than you would expect.
 .PP
+.SH SIGNALS
+Upon receiving
+.BR SIGUSR1,
+.B script
+immediately flushes the output files.
+.PP
 .SH ENVIRONMENT
 The following environment variable is utilized by
 .BR script :