UserExistsError / conpty

Windows Pseudo Console (ConPTY) for Golang
MIT License
32 stars 12 forks source link

Add `Pid()` to get the processId associated #6

Closed terrywh closed 6 months ago

terrywh commented 6 months ago

I'm building a tool which needs to track the started cpty process. try adding a function that provide the pid of it.

UserExistsError commented 6 months ago

Thanks for the PR. Can we return an int instead? The stdlib exec package does this so might be good for consistency:

https://cs.opensource.google/go/go/+/refs/tags/go1.22.2:src/os/exec_posix.go;l=72

terrywh commented 6 months ago

converted to int.