diff options
author | Aleksandr Rybalko <ray@FreeBSD.org> | 2014-05-21 11:53:15 +0000 |
---|---|---|
committer | Aleksandr Rybalko <ray@FreeBSD.org> | 2014-05-21 11:53:15 +0000 |
commit | 0cc7a3856777297a0bf5f1b8236c07617565a40f (patch) | |
tree | 85fd386eb1c25bd99a69276cbb7f55060b3d0884 /usr.bin/lock | |
parent | 7ee92f6e082f588b81164d1a7dcf9f0389a00f89 (diff) | |
download | src-test2-0cc7a3856777297a0bf5f1b8236c07617565a40f.tar.gz src-test2-0cc7a3856777297a0bf5f1b8236c07617565a40f.zip |
Sync lock(1) on VT_LOCKSWITCH usage with syscons(4), vt(4) and vidcontrol(1).
Sponsored by: The FreeBSD Foundation
Notes
Notes:
svn path=/head/; revision=266496
Diffstat (limited to 'usr.bin/lock')
-rw-r--r-- | usr.bin/lock/lock.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |