]> git.ipfire.org Git - thirdparty/util-linux.git/commit
script: cleanup signals usage
authorKarel Zak <kzak@redhat.com>
Wed, 17 Jun 2015 11:25:46 +0000 (13:25 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 17 Jun 2015 11:25:46 +0000 (13:25 +0200)
commitd35ffe808a0e42967cf69d4651582cd0b7ed1e08
tree2e426fec5f81a641cdf253c822ce4dc99ab854aa
parent1200cfbfbdd99c69a6c8b930f18e79f41cad7352
script: cleanup signals usage

 * don't call anything from assert()
 * fork() block cleanup to make it more readable
 * restore original signal mask in child (do_shell())
 * close signal FD in child (do_shell())

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