SIGUSR1 to xinit

ksop at ksop at
Fri Oct 25 17:05:53 CEST 2013


Apparently xserver does not signal the parent if ppid == 1. (Launch from init is assumed?)

Excerpt from NotifyParentProcess() in ./os/connection.c:
    if (RunFromSmartParent) {
        if (ParentProcess > 1) {
            kill(ParentProcess, SIGUSR1);

This means startup is slow (a timeout) if xinit happens to be pid 1.
On linux, this is the case when xinit is launched into a new PID namespace.
Other than that, xinit will happily reap zombies ie be of some use.

Suggested fix: s/1/0/.

Thank you,

More information about the xorg mailing list