[PATCH v2] OS/ACPI: Make socket to acpid is non-blocking
Keith Packard
keithp at keithp.com
Wed Nov 13 20:20:44 PST 2013
Egbert Eich <eich at freedesktop.org> writes:
> static CARD32
> lnxACPICheckTimer(OsTimerPtr timer, CARD32 now, pointer arg)
> {
> + struct timeval timeval = { 0, 0 };
> DebugF("ACPI: trying to reopen\n");
> - if (doLnxACPIOpen()) {
> + if (doLnxACPIOpen(&timeval)) {
Does this actually work with a timeout of 0? I'd assume that acpid could
never accept the connection in time.
A timeout of 100ms or so seems like it'd be a bunch more reliable?
--
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20131114/569e2405/attachment.pgp>
More information about the xorg-devel
mailing list