]> git.ipfire.org Git - thirdparty/util-linux.git/commit
login: close tty before vhangup()
authorKarel Zak <kzak@redhat.com>
Thu, 12 Jul 2012 14:33:52 +0000 (16:33 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 12 Jul 2012 14:35:01 +0000 (16:35 +0200)
commit2e7035646eb85851171cc2e989bfa858a4f00cd4
treec85abd212010baea92a649a744178448f610e291
parent783b08fc1c6e5c906e26b1b4856d5df3a7b5a554
login: close tty before vhangup()

Let's close all tty file descriptors before vhangup() call.

References: https://lkml.org/lkml/2012/6/5/145
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/login.c