diff options
author | 2017-03-15 12:42:12 +0000 | |
---|---|---|
committer | 2017-03-15 12:42:12 +0000 | |
commit | 0d07b4d303bc75088c28bd21fb3074eca0d5aa0c (patch) | |
tree | 49668b8aba13aac1d8bbdfec2ac5cf1747e153bf /usr.bin/mandoc/cgi.c | |
parent | Minimal support for deep linking into man(7) pages. (diff) | |
download | wireguard-openbsd-0d07b4d303bc75088c28bd21fb3074eca0d5aa0c.tar.xz wireguard-openbsd-0d07b4d303bc75088c28bd21fb3074eca0d5aa0c.zip |
Don't terminate vmd(8) when we lost the control connection.
When a start vm request is received from vmctl via the control socket,
vmd's control process forwards it to the parent to trigger the action.
A response is received later, in an async way, and send back to vmctl
that is supposed to wait for it. But now, if vmctl got terminated
before receiving the response, vmd fails to find the control
connection. In this case it should not abort, print and warning, and
ignore the error. The fix is a simple as changing a return (-1) to a
return (0).
This fixes an issue that was reported by mlarkin@
Diffstat (limited to 'usr.bin/mandoc/cgi.c')
0 files changed, 0 insertions, 0 deletions