X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=python%2Fovs%2Fsocket_util.py;h=a8e8d92e7d6ed5cfde4136fa0b777890efb94601;hb=51c82a49d58daebe289e045fe44009d59b1f9236;hp=0a26c5de6164bf6fa68443412b86c9b43a3f23d2;hpb=eaae5809c0115635b600043d35b4233572228e15;p=openvswitch diff --git a/python/ovs/socket_util.py b/python/ovs/socket_util.py index 0a26c5de..a8e8d92e 100644 --- a/python/ovs/socket_util.py +++ b/python/ovs/socket_util.py @@ -1,4 +1,4 @@ -# Copyright (c) 2010, 2012 Nicira Networks +# Copyright (c) 2010, 2012 Nicira, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -70,11 +70,7 @@ def make_unix_socket(style, nonblock, bind_path, connect_path): except socket.error, e: sock.close() if bind_path is not None: - try: - os.unlink(bind_path) - except OSError, e: - pass - ovs.fatal_signal.add_file_to_unlink(bind_path) + ovs.fatal_signal.unlink_file_now(bind_path) return get_exception_errno(e), None