tobold.org

correct • elegant • free

△ comp.lang.perl △

◅ Variable Substitution

Changing Default Perl Module Path ▻

fork() and SysV Process Groups in perl question

In article <5cos6r$a2j@nntp1.best.com>, Zenin  <byron@omix.com> wrote:
>Is there a way to have a Perl program declare itself as a process
>group leader?

See `setpgrp' in the perlfunc(1) man page.

>               If so, is there a way I can make sure that any children
>or grand/great-grand children that my program starts are also in that
>process group?

Not in general.  If it's your code, then of course you can simply ensure
that the children don't call setpgrp themselves.

Tim.
--
Tim Goodwin   | "A language needs both intestines and guts." -- Larry Wall

Original headers:

From: tim@pipex.net (Tim Goodwin)
Newsgroups: comp.lang.perl.misc
Subject: Re: fork() and SysV Process Groups in perl question
Date: 4 Feb 1997 15:10:41 GMT
Organization: UUNET PIPEX
Lines: 16
Message-ID: <5d7jhh$7lq@join.news.pipex.net>
References: <5cos6r$a2j@nntp1.best.com>

△ comp.lang.perl △

◅ Variable Substitution

Changing Default Perl Module Path ▻