Comment 9 for bug 1342068

Revision history for this message
Alexei Sheplyakov (asheplyakov) wrote :

Ubuntu 12.04 uses python 2.7 which includes the above mentioned fix.

Here is the relevant fragment of the code from /usr/lib/python2.7/logging/handlers.py

 737 def _connect_unixsocket(self, address):
 738 self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM)
 739 # syslog may require either DGRAM or STREAM sockets
 740 try:
 741 self.socket.connect(address)
 742 except socket.error:
 743 self.socket.close()
 744 self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
 745 self.socket.connect(address)
 736 try:
 737 self.socket.connect(address)
 738 except socket.error:
 739 self.socket.close()
 740 raise