[PATCH libxtrans xserver v3 0/4] systemd socket activation code for xserver

Łukasz Stelmach l.stelmach at samsung.com
Fri Jul 12 04:18:36 PDT 2013


Hello All.

One down four to go ;-)

This is the third round of the systemd patches with most of suggested
fixes applied. Please take a look and give your comments.

1. Define TRANS_RECEIVED flag for transports
>
>    The patch defines a new flag to mark transports related to sockets
>    received from systemd. The next patch uses it to omit the marked
>    transports in the "for" loop and do not create sockets for them. I
>    chose not to use TRANS_NOLISTEN because it affects other parts of
>    code too.

2. Enable systemd socket activation
>
>    The main patch. It enables libxtrans to "catch" and reopen
>    file descriptors received from systemd via its socket passing
>    interface. With this patch applied and systemd properly configured,
>    it is possible to:
>
>    + start an X server on demand, when the first connection from a client
>      comes in,
>
>    + start X clients before an X server is fully functional.

3. configure.ac: enable systemd socket activation in libxtrans
>
>    Modify configure.ac. 

     + check for libsystemd-daemon with pkg-config

     + check for sd_listen_fds function to make sure the function and
       the library are available for a compiler and a linker.

4. Do not define ErrorF in xstrans.c, libxtrans handles it.
>
>    Yet another cleanup due to warning message.

-- 
Łukasz Stelmach
Samsung R&D Institute Poland
Samsung Electronics


More information about the xorg-devel mailing list