diff options
author | 2017-03-15 17:53:10 +0000 | |
---|---|---|
committer | 2017-03-15 17:53:10 +0000 | |
commit | 0d36af1c46169aca71d4dc5e54d2fd71436a87b9 (patch) | |
tree | c5f616decbe5385633588d981923cdfcfc680442 /lib | |
parent | There's no need to realloc() a chunk of memory when you don't care (diff) | |
download | wireguard-openbsd-0d36af1c46169aca71d4dc5e54d2fd71436a87b9.tar.xz wireguard-openbsd-0d36af1c46169aca71d4dc5e54d2fd71436a87b9.zip |
Close the tty if the VM was powered down.
The parent keeps a copy of each VM's tty fd to reuse it on reboot.
Close this tty if the VM was stopped, and not rebooted, by calling
vm_stop(vm, 0) instead of just setting vm_running to 0. Also make
sure that vm_ttyname is not used after free'ing it.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions