Bug 10489 - SocketUNIXConnect shouldn't return TRANS_TRY_CONNECT_AGAIN when the socket file doesn't exist
Summary: SocketUNIXConnect shouldn't return TRANS_TRY_CONNECT_AGAIN when the socket fi...
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/xtrans (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard:
Keywords:
Depends on:
Blocks: xorg-7.4
  Show dependency treegraph
 
Reported: 2007-03-31 10:04 UTC by Brice Goglin
Modified: 2008-03-24 12:41 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patch fixing the return value in case of ENOENT (1.27 KB, patch)
2007-03-31 10:05 UTC, Brice Goglin
no flags Details | Splinter Review

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.