From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Fri, 26 Jul 2013 13:01:16 -0400 To: 9fans@9fans.net Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] MirOS ksh (mksh) building out-of-the box on Plan9/APE Topicbox-Message-UUID: 6ddb95ea-ead8-11e9-9d60-3106f5b1d025 On Fri Jul 26 12:30:20 EDT 2013, cinap_lenrek@gmx.de wrote: > plan9 kernel doesnt send notes on process exit to the parent. i do > not see any trivial way to emulate SIGCHLD as ape might spawn also > native processes so we cannot just add code to ape to emit the signal > on exit. > > we might handle wait records in a separate process tho using the devproc's > wait file (that means also we would need to reimplement the various > wait functions in ape as one would get a Einuse error on wait() when > someone reads your wait file, ugh) and also generate a signal. we may also have to do this if we wish to support pthreads with processes. pthreads allow one thread to wait for the children started by a second thread. - erik