X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=subproc.py;h=b5944f90f87a8c1a9a5536c267ebd1d1b87e4f72;hb=be7cec61fa405f38dea2edde623174ca47ca7dc3;hp=57a95682803fcd83bd00d554c8d55784af3cef15;hpb=3e29cb1a49f602f4a647c18ae64f0516a76de236;p=bookmarks_db.git diff --git a/subproc.py b/subproc.py index 57a9568..b5944f9 100755 --- a/subproc.py +++ b/subproc.py @@ -328,7 +328,11 @@ class Subprocess: (sig[0], self.pid, self.cmd, hex(id(self))[2:]))) for i in self.pipefiles: - os.close(i) + try: + fp = os.fdopen(i).close() + except OSError: + pass + del self.pipefiles[:] self.pid = 0 return None # ===> time.sleep(.1)