[go-nuts] cgo pam module signal handling

2023-08-11 Thread Chandrasekhar R
Hey community, I am planning on using a pam module written in Go (specifically https://github.com/uber/pam-ussh) . When I run a script which calls sudo continuously with an echo command, I am noticing zombie/defunct processes starting to pop up. On doing strace, I noticed that the SIGCHLD

Re: [go-nuts] cgo pam module signal handling

2023-08-14 Thread Chandrasekhar R
. On Monday, August 14, 2023 at 12:17:34 PM UTC-7 Ian Lance Taylor wrote: > On Mon, Aug 14, 2023 at 12:02 PM Chandrasekhar R > wrote: > > > > My understanding currently is sudo sets up a signal handler in pre_exec > and another signal handler later on which is tied into its main ev

Re: [go-nuts] cgo pam module signal handling

2023-08-14 Thread Chandrasekhar R
hreads from receiving the SIGCHLD signal and thus not let the signal to be handled by the old signal handler. On Friday, August 11, 2023 at 10:05:48 PM UTC-7 Ian Lance Taylor wrote: > On Fri, Aug 11, 2023 at 11:51 AM Chandrasekhar R > wrote: > > > > I am planning on using a