Bug 10489

Summary: SocketUNIXConnect shouldn't return TRANS_TRY_CONNECT_AGAIN when the socket file doesn't exist
Product: xorg Reporter: Brice Goglin <brice.goglin>
Component: Lib/xtransAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
URL: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=385976
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 10101    
Attachments:
Description Flags
Patch fixing the return value in case of ENOENT none

Description Brice Goglin 2007-03-31 10:04:52 UTC
Bug reported to the Debian BTS 6 months ago by Robert Millan, initially against gcalctool, tracked down to xtrans by Loic Minier.

The patch below makes SocketUNIXConnect return TRANS_CONNECT_FAILED instead of TRANS_TRY_CONNECT_AGAIN when the socket descriptor does not exist (for instance because a process still references an old stale socket). See the Debian report for an example.

Thanks,
Brice
Comment 1 Brice Goglin 2007-03-31 10:05:22 UTC
Created attachment 9400 [details] [review]
Patch fixing the return value in case of ENOENT
Comment 2 Adam Jackson 2008-03-24 12:41:12 UTC
Applied to master, with slight munging to account for the new abstract socket support.  Thanks!

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.