[PATCH xserver] os: add an optional offset to -displayfd parameter

Antoine Martin antoine at nagafix.co.uk
Mon Jun 13 15:40:18 UTC 2016


On 13/06/16 22:06, Bernhard Miklautz wrote:
> The displayfd option is very handy and useful. However, in some environments
> where many servers are running (for example in an automated build
> environment using Xvfb) it is often desirable to be able to specify
> an initial offset for the display search.
> 
> For example if it is known that the first 100 displays are
> already taken it isn't currently possible to start at 101 therefore
> each subsequent Xvfb launch would re-try all displays from :0 to :100.
> 
> This patch adds an optional offset option to the displayfd parameter
> that allows it to specify the initial display number to start the search
> from. The format is:
> 
> -displayfd fd[:<offset>]
> 
> The patch also updates the help as well as the Xserver man page accordingly.
> 
> Signed-off-by: Bernhard Miklautz <bernhard.miklautz at thincast.com>
What a great idea that is.

I think you also need to validate the displayoffset to make sure it
isn't greater than 65536 - X_TCP_PORT before you enter the loop.

Cheers
Antoine


More information about the xorg-devel mailing list