develooper Front page | perl.beginners | Postings from April 2002

Re: fork() with no wait()

Thread Previous | Thread Next
From:
Rob Lee
Date:
April 1, 2002 12:05
Subject:
Re: fork() with no wait()
Message ID:
Pine.LNX.4.33.0204011304060.23661-100000@aberdeen.fpcc.net

The beginner shines in me...

For reaping children,
I was thinking of send a signal to the entire group.

The gist is:
I want to attach a child to a FIFO, then have the parent start other 
processes that read from the FIFO.  The readers must be tricked into 
thinking they are reading from files.

So, I thought I'd fork a sub for the FIFO, and have the parent continue 
on.

Is there a better solution?
-R

On Mon, 1 Apr 2002, drieux wrote:

> 
> assuming that you do this, how are you planning to
> reap the child??????
> 
> On Monday, April 1, 2002, at 11:42 , Rob Lee wrote:
> 
> >
> > I'd like to fork my program without waiting for the child to exit.
> >
> > My child will be a sub with an infinite loop, so I'd like the parent to
> > continue on it's merry way.
> >
> > Solutions?
> > -R
> >
> >
> > --
> > To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> > For additional commands, e-mail: beginners-help@perl.org
> >
> >
> 
> 
> ciao
> drieux
> 
> ---
> 



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About