def _checkOKToContinueWithOpenFiles(self):
        okToContinue = True
        
        try:
            pid = os.getpid()
            try:
                fd_dir=os.path.join('/proc/', str(pid), 'fd/')
            except:
                self.logger.writeLog(syslog.LOG_DEBUG, "Open Files:  Problem With PID: "+str(pid))
            numOpenFilesOutput = 0
            for file in os.listdir(fd_dir):
                numOpenFilesOutput += 1
            if (int(numOpenFilesOutput) > int(self.milterConfig.maxFiles)):
                self.logger.writeLog(syslog.LOG_ERR, "Open Files: "+str(numOpenFilesOutput)+", Returning "+str(self.milterConfig.dispositionModes["OverLimit".lower()])+" to avoid shutdown at "+str(self.milterConfig.maxFiles))
                okToContinue = False
            else:
                self.logger.writeLog(syslog.LOG_DEBUG, self.milterConfig.milterInstance+" Open Files: "+str(numOpenFilesOutput)+ " of "+ str(self.milterConfig.maxFiles))
        except __HOLE__:
            self.logger.writeLog(syslog.LOG_ERR, "Value Error in checkOpenFiles")
        except Exception as e:
            exc_type, exc_value, exc_traceback = sys.exc_info()
            print "ERROR EOM  %s" % (repr(traceback.format_exception(exc_type, exc_value, exc_traceback)))
            self.logger.writeLog(syslog.LOG_ERR, "Error in checkOpenFiles")
        return okToContinue
            
    #_dispositionMessage main helper function to open dispositioner class to disposition message.
dataset/ETHPy150Open lmco/laikaboss/laikamilter.py/LaikaMilter._checkOKToContinueWithOpenFiles