Feature request: write out buffer to typescript on SIGTERM
Hello,
is there a good reason why script does not flush it's typescript buffer when it gets a signal such as SIGTERM?
cheers,
Rob
Karel Zak
maintainerQuoted 2 lines · Robert Urban
is there a good reason why script does not flush it's typescript buffer when it gets a signal such as SIGTERM?
Not sure if you're talking about the current script(1) in git tree (it's a new version) or about the original version.
I have improved sensitivity to the SIG{TERM,INT,QUIT}, now it properly terminates the session and close the files. Previously it called abort() (the version in git).
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com
Um, I cloned git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git
yesterday, built it, and tested it. If I send it SIGTERM, it prints "Terminated" and disappears. The typescript file is empty.
Or do you mean something else?
Rob
Quoted 13 lines · Karel Zak
Quoted 2 lines · Robert Urban
is there a good reason why script does not flush it's typescript buffer when it gets a signal such as SIGTERM?
Not sure if you're talking about the current script(1) in git tree (it's a new version) or about the original version.
I have improved sensitivity to the SIG{TERM,INT,QUIT}, now it properly terminates the session and close the files. Previously it called
abort()(the version in git).Karel
Karel Zak
maintainerQuoted 3 lines · Robert Urban
Um, I cloned
git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git
yesterday, built it, and tested it. If I send it SIGTERM, it prints "Terminated" and disappears. The typescript file is empty.
Try it again :-)
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com
Hi Karel,
Quoted 5 lines · Karel Zak
Quoted 3 lines · Robert Urban
Um, I cloned
git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git
yesterday, built it, and tested it. If I send it SIGTERM, it prints "Terminated" and disappears. The typescript file is empty.Try it again :-)
wow! Thank you very much. That was the fastest response I've ever seen from anyone.
cheers,
Rob