summaryrefslogtreecommitdiffstats
path: root/lib/libutil
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2017-03-15 17:53:10 +0000
committerreyk <reyk@openbsd.org>2017-03-15 17:53:10 +0000
commit0d36af1c46169aca71d4dc5e54d2fd71436a87b9 (patch)
treec5f616decbe5385633588d981923cdfcfc680442 /lib/libutil
parentThere's no need to realloc() a chunk of memory when you don't care (diff)
downloadwireguard-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/libutil')
0 files changed, 0 insertions, 0 deletions