Repository: wezterm/wezterm (language: rust)

Issue:
`divine_process_list().foreground` always gives the shell
### What Operating System(s) are you seeing this problem on?

Linux X11

### Which Wayland compositor or X11 Window manager(s) are you using?

awesomewm

### WezTerm version

not a upstream version; based on `a7d9cfd25`

### Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

### Describe the bug

`LocalPane::divine_process_list().foreground` always seems to return the shell. 

I'm doing this: 
```rust
        let proc_list = self.divine_process_list(CachePolicy::FetchImmediate);
        dbg!((self.pane_id(), proc_list.as_ref().map(|p| &p.foreground.argv), self.get_foreground_process_name(CachePolicy::FetchImmediate), self.get_foreground_process_info(CachePolicy::FetchImmediate).as_ref().map(|p| &p.argv)));
```

with neovim open, what I get is:
```
[mux/src/localpane.rs:821] (self.pane_id(), proc_list.as_ref().map(|p| &p.foreground.argv),
    self.get_foreground_process_name(CachePolicy::FetchImmediate),
    self.get_foreground_process_info(CachePolicy::FetchImmediate).as_ref().map(|p|
            &p.argv)) = (
    0,
    Some(
        [
            "/home/steven/.local/bin/nu",
        ],
    ),
    Some(
        "/usr/bin/nvim",
    ),
    Some(
        [
            "nvim",
        ],
    ),
)
```

I don't think nushell is the problem here, because bash and zsh both give this:
```
[mux/src/localpane.rs:821] (self.pane_id(), proc_list.as_ref().map(|p| &p.foreground.argv),
    self.get_foreground_process_name(CachePolicy::FetchImmediate),
    self.get_foreground_process_info(CachePolicy::FetchImmediate).as_ref().map(|p|
            &p.argv)) = (
    1,
    Some(
        [
            "/usr/bin/python3",
            "-c",
            "import sys; sys.path = [p for p in sys.path if p != \"\"]; import neovim; neovim.start_host()",
            "/home/steven/dotfiles/config/nvim/plugged/semshi/rplugin/python3/semshi",
        ],
    ),
    Some(
        "/usr/bin/nvim",
    ),
    Some(
        [
            "nvim",
        ],
    ),
)
```

Okay maybe `semshi` (a vim plugin for python stuff) is doing weird stuff, so I tried `ed`:
```
[mux/src/localpane.rs:821] (self.pane_id(), proc_list.as_ref().map(|p| &p.foreground.argv),
    self.get_foreground_process_name(CachePolicy::FetchImmediate),
    self.get_foreground_process_info(CachePolicy::FetchImmediate).as_ref().map(|p|
            &p.argv)) = (
    0,
    Some(
        [
            "/home/steven/.local/bin/nu",
        ],
    ),
    Some(
        "/usr/bin/ed",
    ),
    Some(
        [
            "ed",
        ],
    ),
)
[mux/src/localpane.rs:821] (self.pane_id(), proc_list.as_ref().map(|p| &p.foreground.argv),
    self.get_foreground_process_name(CachePolicy::FetchImmediate),
    self.get_foreground_process_info(CachePolicy::FetchImmediate).as_ref().map(|p|
            &p.argv)) = (
    1,
    Some(
        [
            "/usr/bin/bash",
        ],
    ),
    Some(
        "/usr/bin/ed",
    ),
    Some(
        [
            "ed",
        ],
    ),
)
```

### To Reproduce

1. add the above code somewhere and a keybinding to trigger it
2. run some persistent stuff and press the binding to trigger the debug

### Configuration

no config other than the keybind

### Expected Behavior

_No response_

### Logs

_No response_

### Anything else?

_No response_


Discussion / hints:

Fix patch:
diff --git a/procinfo/src/linux.rs b/procinfo/src/linux.rs
index aaea015649c..5170a2c0dcb 100644
--- a/procinfo/src/linux.rs
+++ b/procinfo/src/linux.rs
@@ -73,7 +73,7 @@ impl LocalProcessInfo {
                 name: name.to_string(),
                 status: fields.first()?.to_string(),
                 ppid: fields.get(1)?.parse().ok()?,
-                starttime: fields.get(20)?.parse().ok()?,
+                starttime: fields.get(19)?.parse().ok()?,
             })
         }
 


Test patch: