diff options
author | dusoleil <howcansocksbereal@gmail.com> | 2021-09-02 15:36:22 -0400 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2021-09-02 15:36:22 -0400 |
commit | 51cd7258a88b29450735355a666df142a0c29069 (patch) | |
tree | e8b4cff8cca94a9be68f008c503f8e714fd3ebec /tools | |
parent | 98a68415ee658194f586dce4d14ce2918cc537f6 (diff) | |
download | lib-des-gnux-51cd7258a88b29450735355a666df142a0c29069.tar.gz lib-des-gnux-51cd7258a88b29450735355a666df142a0c29069.zip |
Handle Process destr when Process constr throws
Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/sploit/sploit/comm.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/sploit/sploit/comm.py b/tools/sploit/sploit/comm.py index 81efa9c..7d6cd8c 100644 --- a/tools/sploit/sploit/comm.py +++ b/tools/sploit/sploit/comm.py @@ -112,6 +112,7 @@ class Process: self.stdout = self.proc.stdin def __del__(self): + if getattr(self, 'proc', None) == None : return if(self.proc.poll() != None): return try: |