Changeset 1602

Show
Ignore:
Timestamp:
11/05/08 15:07:33 (2 months ago)
Author:
peet
Message:

close the socket on object shutdown — it is more important, than correctly destroy thread, because netlink socket is an exclusive resource

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/0.4.7/lib/cxnet/cxnet/netlink/util.py

    r1600 r1602  
    3030from Queue import Queue 
    3131 
     32import os 
    3233 
    3334class py_iproute2(Thread): 
     
    8889        def stop(self): 
    8990                self.__shutdown = True 
     91                os.close(self.socket.fd) 
    9092 
    9193        def run(self):