summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sploit/comm.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sploit/comm.py b/sploit/comm.py
index 67c97bc..50ef3dc 100644
--- a/sploit/comm.py
+++ b/sploit/comm.py
@@ -18,7 +18,10 @@ class Comm:
self.back = backend
def shutdown(self):
- self.back.stdout.close()
+ try:
+ self.back.stdout.close()
+ except BrokenPipeError:
+ pass
def read(self, size):
data = os.read(self.back.stdin.fileno(), size)