qrexec: handle vchan connect errors
This commit is contained in:
parent
d08831cc7e
commit
43770dae36
@ -205,6 +205,10 @@ void init(int xid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
vchan = libvchan_client_init(xid, REXEC_PORT);
|
vchan = libvchan_client_init(xid, REXEC_PORT);
|
||||||
|
if (!vchan) {
|
||||||
|
perror("cannot connect to qrexec agent");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
/* wait for connection */
|
/* wait for connection */
|
||||||
while (!libvchan_is_open(vchan))
|
while (!libvchan_is_open(vchan))
|
||||||
libvchan_wait(vchan);
|
libvchan_wait(vchan);
|
||||||
|
Loading…
Reference in New Issue
Block a user