Hello Maxim,

Saturday, October 27, 2001, Maxim Goncharov <[EMAIL PROTECTED]> wrote:
MG>  I need help with understanding what is happening when I fork a
MG> process.Here is actual code:
you did not 'fork' process. 'fork' is very special function, see
perldoc -f fork
man fork
for nore information.

MG> #!/usr/bin/perl -w
MG> use strict;
MG> use Fcntl qw(:DEFAULT :flock);
MG> use POSIX;
MG> #use Mail::Mailer;
MG> my ($pid);
MG> $pid = open(HHH,"| infloop");
MG> if($pid){
MG>     print HHH "bla bla \n";
MG> }

MG> where infloop is another perl program that just sits in the infinite
MG> loop. Program as written is doing what it supposed: parent spawns another
MG> process, prints stuff into it, and exits (because I do not close(HHH)).
MG> However, if I uncomment line Mail::Mailer, the parent all of a sudden
MG> would sit and wait for the child to exit, as if I called close(HHH). Would
MG> anyone please explain it to me.

if i understand correctly, you can understand russian. so please
contact me personally, and tell what your problem is. i do not
undestand, what is wrong.

MG>  I already posted a message like that one before and did not get any
MG> response. Please tell me if you you know the mailing list where I would
MG> get a response for the problem like that one.
i saw responce from Smoot Carl-Mitchell, btw.

Best wishes,
 Maxim                            mailto:[EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to