diff options
author | ray <ray@FreeBSD.org> | 2014-05-21 11:53:15 +0000 |
---|---|---|
committer | ray <ray@FreeBSD.org> | 2014-05-21 11:53:15 +0000 |
commit | bbc12717de37d4035fe7f18e2551776b26105135 (patch) | |
tree | 85fd386eb1c25bd99a69276cbb7f55060b3d0884 /usr.bin/lock | |
parent | 15a2caccb1141d7f897bf20cc7e60f4fcf5dc8df (diff) | |
download | FreeBSD-src-bbc12717de37d4035fe7f18e2551776b26105135.zip FreeBSD-src-bbc12717de37d4035fe7f18e2551776b26105135.tar.gz |
Sync lock(1) on VT_LOCKSWITCH usage with syscons(4), vt(4) and vidcontrol(1).
Sponsored by: The FreeBSD Foundation
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 acc0e29..376f36c 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 */ |