Hi Steven,
correct, I only noticed this later but in the end I decided to not make use
of it. The reason is that there still is no atomicity and no locking, so
the Cmd.Process can do whatever it want, especially playing the Blue
Norwegian.
On Tuesday, July 26, 2022 at 1:28:45 AM UTC+2 Steven
Looks like session already has what you need as you can check
if session.Exited has been closed something like:
select {
case <- session.Exited:
// Handle session has ended
default:
// Handle session hasn't ended
}
On Sat, 23 Jul 2022 at 21:39, TheDiveO wrote:
> In my open source
On Sat, Jul 23, 2022 at 1:39 PM TheDiveO wrote:
>
> In my open source file descriptor leak checker (Linux only) for Gomega, Go's
> race detector flags a race condition in my code where I need to check whether
> a Cmd.Process already has terminated as its ProcessState has been set.
>
> if
In my open source file descriptor leak checker (Linux only) for Gomega,
Go's race detector flags a race condition in my code where I need to check
whether a Cmd.Process already has terminated