[DAP] Only kill positive pids on disconnection #55209
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
dds-dap
DDS issues related to the Debug Adapter Protocol (DAP) implementation
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
On disconnection, DAP kills all pids:
sdk/pkg/dds/lib/src/dap/adapters/mixins.dart
Lines 41 to 47 in 7685ec3
However, this set of pids contains the VM pid, which defaults to
-1
if it was not set:sdk/pkg/vm_service/lib/src/vm_service.dart
Line 8570 in 7685ec3
On Linux, killing
-1
is a special case that means "kill all the process that you can." We had a case where this was killing a bunch of running processes on a users machine.The text was updated successfully, but these errors were encountered: