terminate Xvnc on disconnect

20 views
Skip to first unread message

Daniel Pirkl

unread,
Jun 26, 2024, 4:30:09 AM6/26/24
to TigerVNC Developer Discussion
Hallo everyone,

I use Xvnc and for some reason I need Xvnc to terminate when last client disconnect (actually I use "-NeverShared -DisconnectClients false" parameters, so I allows one client only). And for some other reason I can't run Xvnc using inetd.

I wrote small patch and it seems working. Would it be possible to incorporate this patch or some similar functionality into the source codes (and add some startup parameter to make it work)?

Daniel Pirkl

giveup.patch

Pierre Ossman

unread,
Jun 27, 2024, 6:16:47 AM6/27/24
to Daniel Pirkl, TigerVNC Developer Discussion
That functionality actually already exists in the form of the
-MaxDisconnectionTime setting. Specify the number of seconds you want
Xvnc to wait without any clients before it terminates.

Regards
--
Pierre Ossman Software Development
Cendio AB https://cendio.com
Teknikringen 8 https://twitter.com/ThinLinc
583 30 Linköping https://facebook.com/ThinLinc
Phone: +46-13-214600

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

Reply all
Reply to author
Forward
0 new messages