This commit is contained in:
petrucci4prez 2017-06-06 01:26:18 -04:00
parent 97a5596639
commit 964445ca77
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ class PipeListener(ExceptionThread):
if not os.path.exists(self._path): if not os.path.exists(self._path):
os.mkfifo(self._path, mode=pipeMode) os.mkfifo(self._path, mode=pipeMode)
else: else:
st_mode = os.state(self._path).st_mode st_mode = os.stat(self._path).st_mode
if not stat.S_ISFIFO(st_mode): if not stat.S_ISFIFO(st_mode):
os.remove(self._path) os.remove(self._path)
os.mkfifo(self._path, mode=pipeMode) os.mkfifo(self._path, mode=pipeMode)