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
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): socket( socket. AF_UNIX, socket.SOCK_DGRAM) connect( address) socket( socket. AF_UNIX, socket.SOCK_STREAM) connect( address) connect( address)
738 self.socket = socket.
739 # syslog may require either DGRAM or STREAM sockets
740 try:
741 self.socket.
742 except socket.error:
743 self.socket.close()
744 self.socket = socket.
745 self.socket.
736 try:
737 self.socket.
738 except socket.error:
739 self.socket.close()
740 raise