pmap_activate() with non-curlwp?

2020-08-15 Thread Jason Thorpe
From my reading of the code, it seems that there are no longer any circumstances where pmap_activate() will be called with non-curlwp, at least in MI code. Is this a correct reading? -- thorpej

RE: wait(2) and SIGCHLD

2020-08-15 Thread Terry Moore
David Holland wrote: >> I would say so, especially since that would mean the child's parent is > > no longer the process that forked it (which could break other use >> cases). > > That depends on how you implement detaching, but I suppose ultimately > it's important for getppid() to revert to 1

Re: wait(2) and SIGCHLD

2020-08-15 Thread David Holland
On Sat, Aug 15, 2020 at 07:24:01AM -0400, Mouse wrote: > >>> What I observe is that a process that explicitly ignores SIGCHLD > >>> (SIG_IGN), then forks a child which exits, when wait()ing for the > >>> child, gets ECHILD (i.e., wait returns -1 and errno is ECHILD). > >> And the ECHILD return

Re: SIGCHLD and sigaction()

2020-08-15 Thread Mouse
> When I install a SIGCHLD handler via sigaction() using SA_SIGINFO, is > it guaranteed that my handler is called (at least) once per > death-of-a-child? "Maybe." It depends on how portable you want to be. Historically, "no": in some older systems, a second SIGCHLD delivered when there's

SIGCHLD and sigaction()

2020-08-15 Thread Edgar Fuß
Another question in the context of SIGCHLD: When I install a SIGCHLD handler via sigaction() using SA_SIGINFO, is it guaranteed that my handler is called (at least) once per death-of-a-child? There is sentence in SUS If SA_SIGINFO is set in sa_flags, then subsequent occurrences of sig

Re: futexes

2020-08-15 Thread Taylor R Campbell
> Date: Sat, 15 Aug 2020 19:59:24 +0100 > From: Robert Swindells > > Is anyone working on the proposed solution to kern/55230 ? thorpej was working on it and has a patch -- I thought it got committed, but I guess not? There might have been some hard-to-fix bug remainining in it but I forget

futexes

2020-08-15 Thread Robert Swindells
Is anyone working on the proposed solution to kern/55230 ?

Re: wait(2) and SIGCHLD

2020-08-15 Thread Mouse
>>> What I observe is that a process that explicitly ignores SIGCHLD >>> (SIG_IGN), then forks a child which exits, when wait()ing for the >>> child, gets ECHILD (i.e., wait returns -1 and errno is ECHILD). >> And the ECHILD return is delayed until all children have terminated > Huh, I hadn't

Re: wait(2) and SIGCHLD

2020-08-15 Thread David Holland
On Fri, Aug 14, 2020 at 03:51:12PM -0400, Mouse wrote: > > What I observe is that a process that explicitly ignores SIGCHLD > > (SIG_IGN), then forks a child which exits, when wait()ing for the > > child, gets ECHILD (i.e., wait returns -1 and errno is ECHILD). > > And the ECHILD return is