openvt: Fix -w option
authorRobert White <rwhite@pobox.com>
Thu, 7 Apr 2011 20:35:01 +0000 (00:35 +0400)
committerAlexey Gladkov <gladkov.alexey@gmail.com>
Thu, 7 Apr 2011 20:35:01 +0000 (00:35 +0400)
commite37c78afc7fcee6d8edaa506b99d9081249adb7d
treede23870836aab9b04db63dcd7e84d3092002bdfd
parent20cae80bf9708d4b36d3132d6ab8efd553062e34
openvt: Fix -w option

The openvt command, when using option -w needs to close the file descriptor
attached to the allocated vt or it will always return an error because the vt
is "still in use" by openvt.

Signed-off-by: Robert White <rwhite@pobox.com>
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
src/openvt.c