remove non-used function
authorS.Çağlar Onur <caglar@cs.princeton.edu>
Wed, 21 Jul 2010 03:19:27 +0000 (23:19 -0400)
committerS.Çağlar Onur <caglar@cs.princeton.edu>
Wed, 21 Jul 2010 03:19:27 +0000 (23:19 -0400)
python/vserver.py

index 8fdb505..a4e828d 100644 (file)
@@ -468,12 +468,3 @@ def create(vm_name, static = False, ctor = VServer):
     vm_id = pwd.getpwnam(vm_name)[2]
 
     return ctor(vm_name, vm_id)
-
-
-def close_nonstandard_fds():
-    """Close all open file descriptors other than 0, 1, and 2."""
-    _SC_OPEN_MAX = 4
-    for fd in range(3, os.sysconf(_SC_OPEN_MAX)):
-        try: os.close(fd)
-        except OSError: pass  # most likely an fd that isn't open
-