Skip to contentSkip to conversation

Feature request: write out buffer to typescript on SIGTERM

DISCUSSION Robert Urban 2 participants 5 messages Jul 27, 2015 – Jul 29, 2015 Util-Linux package

lore
Share & tools
lore
#0 lore raw

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

maintainer
#1 lore raw
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

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com
#2 lore raw

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

maintainer
#3 lore raw
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 :-)

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com
#4 lore raw

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