From 0cc7a3856777297a0bf5f1b8236c07617565a40f Mon Sep 17 00:00:00 2001 From: Aleksandr Rybalko Date: Wed, 21 May 2014 11:53:15 +0000 Subject: Sync lock(1) on VT_LOCKSWITCH usage with syscons(4), vt(4) and vidcontrol(1). Sponsored by: The FreeBSD Foundation --- usr.bin/lock/lock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/lock') diff --git a/usr.bin/lock/lock.c b/usr.bin/lock/lock.c index acc0e29d62d8..376f36c4bef4 100644 --- a/usr.bin/lock/lock.c +++ b/usr.bin/lock/lock.c @@ -121,7 +121,7 @@ main(int argc, char **argv) no_timeout = 1; break; case 'v': - vtylock = 1; + vtylock = 0x2; break; case '?': default: @@ -193,7 +193,7 @@ main(int argc, char **argv) (void)tcsetattr(0, TCSADRAIN|TCSASOFT, &tty); err(1, "locking vty"); } - vtyunlock = 0x2; + vtyunlock = 0x1; } /* header info */ -- cgit v1.2.3