Remove unnecessary import and variable.

This commit is contained in:
Ilya A. Otyutskiy
2012-09-01 01:26:57 +04:00
parent 96eb548542
commit 08d161249f

View File

@@ -7,7 +7,6 @@ from functools import partial
import fcntl
import os
import sys
import time
import signal
import resource
import logging
@@ -47,7 +46,6 @@ def start(fun_to_start, pid, logfile=None, debug=False):
# as it might be different than /dev/null.
devnull = os.devnull
null_descriptor = open(devnull, "rw")
for fd in range(resource.getrlimit(resource.RLIMIT_NOFILE)[0]):
try:
os.close(fd)