Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Add adapter pid to ignore list (#1801)
Browse files Browse the repository at this point in the history
  • Loading branch information
karthiknadig authored Sep 25, 2019
1 parent bb5da4e commit 346ebd4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ptvsd/server/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@ def after_receive(self, msg):

# Adapter life time is expected to be longer than this process,
# so never wait on the adapter process
# TODO: Add adapter PID to ignore list https://github.com/microsoft/ptvsd/issues/1786
subprocess.Popen(adapter_args, bufsize=0)
process = subprocess.Popen(adapter_args, bufsize=0)
# Ensure that we ignore the adapter process when terminating the
# debugger.
pydevd.add_dont_terminate_child_pid(process.pid)

server_opts.port = port_queue.get(True, _QUEUE_TIMEOUT)

Expand Down

0 comments on commit 346ebd4

Please sign in to comment.