# Fix duplicate process entries in WSL debug attach list \(\#40591\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/f213f4bcc8b69f4d65da076f17238359e2e70b0e)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: f213f4bcc8b69f4d65da076f17238359e2e70b0e

Requested commit: f213f4bcc8b69f4d65da076f17238359e2e70b0e

Commit: f213f4bcc8b69f4d65da076f17238359e2e70b0e

Tree: 9a4045aac9185015a469d7ae6d5d8f388bae4c27

Author: feeiyu

Committer: GitHub

## Message

```
Fix duplicate process entries in WSL debug attach list (#40591)

Closes #40589

Replaced `System::new_all()` with `System::new_with_specifics` to fetch
only essential process information and exclude non-main threads from the
process list

after fix:
<img width="641" height="474" alt="image"
src="https://github.com/user-attachments/assets/32335552-2f7a-4317-8c01-f37b2eadfdc1"
/>


Release Notes:

- Fix duplicate process entries in WSL debug attach list
```

## Parents

- [0ee6ca1767bf45e1921a4c085e5b7cbcfe3620e0](https://git.cafe/gitcafe/zed/commit/0ee6ca1767bf45e1921a4c085e5b7cbcfe3620e0?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/f213f4bcc8b69f4d65da076f17238359e2e70b0e?format=markdown)
