posix: close pipes to avoid resource leak
diff --git a/serial/serialposix.py b/serial/serialposix.py
index 79da9aa..5b33a33 100644
--- a/serial/serialposix.py
+++ b/serial/serialposix.py
@@ -412,6 +412,12 @@
if self.fd is not None:
os.close(self.fd)
self.fd = None
+ os.close(self.pipe_abort_read_w)
+ os.close(self.pipe_abort_read_r)
+ os.close(self.pipe_abort_write_w)
+ os.close(self.pipe_abort_write_r)
+ self.pipe_abort_read_r, self.pipe_abort_read_w = None, None
+ self.pipe_abort_write_r, self.pipe_abort_write_w = None, None
self.is_open = False
# - - - - - - - - - - - - - - - - - - - - - - - -