mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
client: exit nicely for --controller with no SPICE_XPI_SOCKET (rhbz#644292)
When starting spicec with --controller, SPICE_XPI_SOCKET environment variable must be defined so spicec and the controller can be connected.
This commit is contained in:
parent
a0996e0f70
commit
eda812f0d7
@ -44,6 +44,7 @@ Controller::Controller(ControllerInterface *handler)
|
||||
char *p_socket = getenv("SPICE_XPI_SOCKET");
|
||||
if (!p_socket) {
|
||||
LOG_ERROR("Failed to get a controller connection (SPICE_XPI_SOCKET)");
|
||||
throw Exception("Failed to get a controller connection (SPICE_XPI_SOCKET)");
|
||||
}
|
||||
strncpy(pipe_name, p_socket, sizeof(pipe_name));
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user