Util-Linux package development
 help / color / mirror / Atom feed
From: Robert Urban <urban@unix-beratung.de>
To: Karel Zak <kzak@redhat.com>
Cc: util-linux@vger.kernel.org
Subject: Re: Feature request: write out buffer to typescript on SIGTERM
Date: Tue, 28 Jul 2015 21:37:37 +0200	[thread overview]
Message-ID: <55B7DA01.6080204@unix-beratung.de> (raw)
In-Reply-To: <20150728083932.GG6865@ws.net.home>

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

On 07/28/2015 10:39 AM, Karel Zak wrote:
> On Tue, Jul 28, 2015 at 12:40:48AM +0200, Robert Urban wrote:
>> 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
>
>

  reply	other threads:[~2015-07-28 19:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-27 22:40 Feature request: write out buffer to typescript on SIGTERM Robert Urban
2015-07-28  8:39 ` Karel Zak
2015-07-28 19:37   ` Robert Urban [this message]
2015-07-28 23:49     ` Karel Zak
2015-07-29  0:02       ` Robert Urban

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55B7DA01.6080204@unix-beratung.de \
    --to=urban@unix-beratung.de \
    --cc=kzak@redhat.com \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox