Summary: | Retry on EIO on opening /dev/console | ||
---|---|---|---|
Product: | ConsoleKit | Reporter: | Martin Pitt <martin.pitt> |
Component: | Daemon | Assignee: | william.jon.mccann |
Status: | NEW --- | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | cjwatson |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | git formatted patch |
Description
Martin Pitt
2010-11-20 09:01:58 UTC
Created attachment 40437 [details] [review] git formatted patch Patch by Colin Watson. Grrr, sleep loops are evil. I wonder if we should just ignore this bug until the BKL is gone. Seems the issue is gone on .38 anyway. Hmm, so I have discussed this with some folks, and it seems we do need something like this as the kernel will not help us here. However, I don't think the patch is acceptable: there are other reasons why EIO might be returned. Since we cannot distuingish the error causes we need at least a safe way out. My suggestion would be to retry opening 20 times and then give up. In systemd I have settled to use 20 times with 50ms in between, totalling to 1s in total. Could you please update the patch? I'll then merge it. OK, I merged the patch now nonetheless. We should get fixed this properly one day (i.e. only retry a max number), so leaving this bug open. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.