Re: A question about Processes usage

William Welliver <[email protected]> Tue, 23 Apr 2019 13:20:14 -0400 (EDT)
Newsgroups gmane.comp.lang.pike.user
Message-ID <[email protected]>
Hi,

If you're spawning new processes using Process.create_prorocess, you
should be able to get the process id from each Process object using the
pid() method.

If you want to know more generally which processes running have your
process id as their parent, you'll need to use ps or pgrep or something
similar.

Bill

On Tue, 23 Apr 2019, MineMoreGames wrote:

> 
> Hey! I was wondering how can the main process fetch the amount of child processes the program runs.
> 
> 
>