From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@9fans.net Date: Fri, 20 Jun 2008 15:08:24 -0400 From: a@9srv.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] process group, processes running in the background Topicbox-Message-UUID: c3e2933a-ead3-11e9-9d60-3106f5b1d025 // Can I say what processes are running in the background... I assume you mean in the shell (the rest of your questions were more general). rc tracks this internally for wait to work (which will allow you to wait for a given pid or all backgrounded pids) in waitpids in /sys/src/cmd/rc/plan9.c, but i don't see that the contents of this are exposed to users anywhere. If one were sufficently motivated, it looks like it'd be fairly straight- forward to add an env var, say apidlist, and have the *waitpid fns in plan9.c manipulate it. // ...is it possible to get them back to foreground? Nope. anthony