Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions libnmap/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,11 @@ def run(self):
# Call the callback one last time to signal the new state
if self.__nmap_event_callback:
self.__nmap_event_callback(self)

# Close I/O handlers before exiting
self.__nmap_proc.stdout.close()
self.__nmap_proc.stderr.close()

return self.rc

def run_background(self):
Expand Down