Browse Source

[master] removed accidentally committed code with the previous fix.

JINMEI Tatuya 12 years ago
parent
commit
0b690e4c4a
1 changed files with 0 additions and 8 deletions
  1. 0 8
      src/bin/xfrout/xfrout.py.in

+ 0 - 8
src/bin/xfrout/xfrout.py.in

@@ -152,14 +152,6 @@ def get_soa_serial(soa_rdata):
     '''
     return Serial(int(soa_rdata.to_text().split()[2]))
 
-def make_blocking(fd, on=True):
-    flags = fcntl.fcntl(fd, fcntl.F_GETFL)
-    if on:                      # make it blocking
-        flags &= ~os.O_NONBLOCK
-    else:                       # make it non blocking
-        flags |= os.O_NONBLOCK
-    fcntl.fcntl(fd, fcntl.F_SETFL, flags)
-
 class XfroutSession():
     def __init__(self, sock_fd, request_data, server, tsig_key_ring, remote,
                  default_acl, zone_config, client_class=DataSourceClient):