doom upgrade: Open diff in browser -> Bad file descriptor
- Dominant language
- Emacs Lisp
- Stars
- 22.7k
- Forks
- 3.1k
- Avg merge
- 10h 46m
- Merged PRs (30d)
- 4
Description
### What did you expect to happen?
When I run `doom upgrade` and agree to view the diff in my browser, I shouldn't see a strange warning about bad file descriptors.
### What actually happened?
Upon `doom upgrade` I'm asked if I'd like to see the diff in my browser. **If I have a browser open** it always sends me an error message that looks like this:

Although the page opens successfully in the browser anyway.
**If I never had a browser open in the first place** I see no such error.
### Describe your attempts to resolve the issue
_No response_
### Steps to reproduce
1. Have Emacs open and Doom on a non-recent commit.
2. Have a browser open (Firefox?)
3. Run `doom upgrade` (from a `vterm` is how I've been doing it).
4. Agree to view the diff.
5. See the error message.
### System Information
https://pastebin.com/NVpjkfwA
Contributor guide
Assessment
This issue has not been assessed yet.