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 | 456ba40339d6208748778855278b4fd3b883cb43 (patch) | |
tree | f0c0ef738954b310702bf18e797a0cd938c3b3df | |
parent | a5e26e02746a46c6a0a793de4006faa7c4df9793 (diff) | |
download | sploit-456ba40339d6208748778855278b4fd3b883cb43.tar.gz sploit-456ba40339d6208748778855278b4fd3b883cb43.zip |
Handle Process destr when Process constr throws
Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | sploit/comm.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sploit/comm.py b/sploit/comm.py index 81efa9c..7d6cd8c 100644 --- a/sploit/comm.py +++ b/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: |