Re: [go-nuts] cmd.ExtraFiles == nil, yet process inherits FDs?

2024-11-11 Thread Peter Galbavy
Thanks Ian, I missed that bit in my enthusiasm. I'll read the whole issue as it seems to be the same thing and if I have anything new to add I'll do it there (it was still Open I recall). rgds, On Monday 11 November 2024 at 19:34:51 UTC Ian Lance Taylor wrote: > On Mon, Nov 11, 2024 at 12:29 AM

Re: [go-nuts] cmd.ExtraFiles == nil, yet process inherits FDs?

2024-11-11 Thread Ian Lance Taylor
On Mon, Nov 11, 2024 at 12:29 AM Peter Galbavy wrote: > > They are created by the VS Code terminal session before I run my program. > Their open flags are not known to me or under my control, but I guess they > don't have close-on-exec set. > > I would not that in https://github.com/golang/go/is

Re: [go-nuts] Do we need to drain a closed channel ?

2024-11-11 Thread Ian Lance Taylor
On Mon, Nov 11, 2024 at 9:02 AM Bosung Park wrote: > > I understand that unreferenced channels will eventually be garbage collected, > along with any objects in their buffer. > So, it is not actually memory leak. > > However, I am curious if there is a possibility that, until the garbage > colle

Re: [go-nuts] Do we need to drain a closed channel ?

2024-11-11 Thread Bosung Park
I understand that unreferenced channels will eventually be garbage collected, along with any objects in their buffer. So, it is not actually memory leak. However, I am curious if there is a possibility that, until the garbage collection occurs, the accumulation of unnecessary memory could appe

Re: [go-nuts] cmd.ExtraFiles == nil, yet process inherits FDs?

2024-11-11 Thread Peter Galbavy
They are created by the VS Code terminal session before I run my program. Their open flags are not known to me or under my control, but I guess they don't have close-on-exec set. I would not that in https://github.com/golang/go/issues/37857 you did say "The status of files that are not listed i