Re: xorg server should wait HAL if it's not avail during init

2009-01-21 Thread Rémi Cardona
Tino Keitel a écrit : If I got this right, this implies that HAL still detaches from the terminal after startup I'm just pointing out that HAL has all the necessary mechanisms for Doing It Right (tm). I don't know when the deamon process detaches from the console. This is left as an exercise

Re: xorg server should wait HAL if it's not avail during init

2009-01-21 Thread Yan Li
On Tue, Jan 20, 2009 at 02:42:02PM -0200, Paulo César Pereira de Andrade wrote: Tino Keitel wrote: On Tue, Jan 20, 2009 at 10:18:10 +0100, Matija Å uklje wrote: Dne torek 20. januarja 2009 je Yan Li napisal(a): I suggest we add a short (5 seconds) busy-wait if hald is not usable. Isn't

Re: xorg server should wait HAL if it's not avail during init

2009-01-21 Thread Yan Li
On Tue, Jan 20, 2009 at 08:38:30PM +0100, Tino Keitel wrote: On Tue, Jan 20, 2009 at 17:54:20 +0100, Rémi Cardona wrote: hald already has a pipe set up between the launcher process and the daemon process. The launcher process exits when it receives a message on the pipe from the daemon.

Re: xorg server should wait HAL if it's not avail during init

2009-01-21 Thread Yan Li
On Wed, Jan 21, 2009 at 10:14:42AM +0100, Rémi Cardona wrote: Tino Keitel a écrit : If I got this right, this implies that HAL still detaches from the terminal after startup I'm just pointing out that HAL has all the necessary mechanisms for Doing It Right (tm). I don't know when the

Re: xorg server should wait HAL if it's not avail during init

2009-01-21 Thread Peter Hutterer
On Tue, Jan 20, 2009 at 05:54:20PM +0100, Rémi Cardona wrote: Tino Keitel a écrit : On Tue, Jan 20, 2009 at 10:18:10 +0100, Matija Šuklje wrote: Dne torek 20. januarja 2009 je Yan Li napisal(a): I suggest we add a short (5 seconds) busy-wait if hald is not usable. Isn't that more of a

Re: xorg server should wait HAL if it's not avail during init

2009-01-20 Thread Paulo César Pereira de Andrade
Tino Keitel wrote: On Tue, Jan 20, 2009 at 10:18:10 +0100, Matija Å uklje wrote: Dne torek 20. januarja 2009 je Yan Li napisal(a): I suggest we add a short (5 seconds) busy-wait if hald is not usable. Isn't that more of a (distro's) init system problem? The problem is that most of those

Re: xorg server should wait HAL if it's not avail during init

2009-01-20 Thread Rémi Cardona
Tino Keitel a écrit : On Tue, Jan 20, 2009 at 10:18:10 +0100, Matija Šuklje wrote: Dne torek 20. januarja 2009 je Yan Li napisal(a): I suggest we add a short (5 seconds) busy-wait if hald is not usable. Isn't that more of a (distro's) init system problem? The problem is that most of those

Re: xorg server should wait HAL if it's not avail during init

2009-01-20 Thread Tino Keitel
On Tue, Jan 20, 2009 at 17:54:20 +0100, Rémi Cardona wrote: [...] hald already has a pipe set up between the launcher process and the daemon process. The launcher process exits when it receives a message on the pipe from the daemon. Maybe that message could be delayed until HAL is

xorg server should wait HAL if it's not avail during init

2009-01-19 Thread Yan Li
Dear All, I've met a problem about xorg server initialization on some systems: if xorg server is started before hald finished it's initialization, xorg server's init would fail. When hald is started in daemon mode, it forks into background and returns immediately. In the background it needs some