[Chicago-talk] fork and talk to the parent
Jay Strauss
me at heyjay.com
Thu Dec 4 23:07:11 CST 2003
Ok, I guess I was too unspecific
the parent will be in an infinite loop. The forked child will be sitting
(also in a infinite loop) listening on a socket. When the child gets a
message from the socket, based on the message, it may need to send that data
to the parent.
Jay
----- Original Message -----
From: "Randal L. Schwartz" <merlyn at stonehenge.com>
To: "Chicago.pm chatter" <chicago-talk at mail.pm.org>
Sent: Thursday, December 04, 2003 10:00 PM
Subject: Re: [Chicago-talk] fork and talk to the parent
> >>>>> "Jay" == Jay Strauss <me at heyjay.com> writes:
>
> Jay> I want to fork a process, but then I want to child to talk to the
parent.
>
> Define "talk". Synchronous unidirectional is trivial:
>
> open CHILD, "some commmand|" or die;
> while (<CHILD>) { ... }
>
> --
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777
0095
> <merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
> See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl
training!
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at mail.pm.org
> http://mail.pm.org/mailman/listinfo/chicago-talk
>
>
More information about the Chicago-talk
mailing list