qrexec_daemon: print dots when waiting for agent
This commit is contained in:
parent
d6bdb85883
commit
b7698de251
@ -53,6 +53,7 @@ int server_fd;
|
||||
|
||||
void handle_usr1(int x)
|
||||
{
|
||||
fprintf(stderr, "connected\n");
|
||||
exit(0);
|
||||
}
|
||||
|
||||
@ -77,7 +78,11 @@ void init(int xid)
|
||||
case 0:
|
||||
break;
|
||||
default:
|
||||
pause();
|
||||
fprintf(stderr, "Waiting for VM's qrexec agent.");
|
||||
for (;;) {
|
||||
sleep(1);
|
||||
fprintf(stderr, ".");
|
||||
}
|
||||
exit(0);
|
||||
}
|
||||
close(0);
|
||||
|
Loading…
Reference in New Issue
Block a user