Univention Bugzilla – Attachment 5371 Details for
Bug 32255
UMC-server start fails if socket dir doesnt exists or no more inodes are available
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for correct handling of socket bind failure.
bug32255.patch (text/plain), 716 bytes, created by
Alexander Kläser
on 2013-08-19 11:14:18 CEST
(
hide
)
Description:
Patch for correct handling of socket bind failure.
Filename:
MIME Type:
Creator:
Alexander Kläser
Created:
2013-08-19 11:14:18 CEST
Size:
716 bytes
patch
obsolete
>--- /usr/lib/pymodules/python2.6/univention/management/console/protocol/server.py.orig 2013-08-19 05:09:22.444000000 -0400 >+++ /usr/lib/pymodules/python2.6/univention/management/console/protocol/server.py 2013-08-19 05:11:36.624000000 -0400 >@@ -437,8 +437,12 @@ > self.__realsocket.bind( self.__unix ) > # restore old umask > os.umask( old_umask ) >- except: >- os.unlink( self.__unix ) >+ except Exception, e: >+ CRYPT.error('Setting up connection to socket %s failed: %s' % (self.__unix, e)) >+ try: >+ os.unlink( self.__unix ) >+ except OSError, oserror: >+ pass > else: > self.__realsocket.bind( ( '', self.__port ) ) > CRYPT.info( 'Server listening to connections' )
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 32255
: 5371