HI everyone, I need help with understanding what is happening when I fork a process.Here is actual code:
#!/usr/bin/perl -w use strict; use Fcntl qw(:DEFAULT :flock); use POSIX; #use Mail::Mailer; my ($pid); $pid = open(HHH,"| infloop"); if($pid){ print HHH "bla bla \n"; } where infloop is another perl program that just sits in the infinite loop. Program as written is doing what it supposed: parent spawns another process, prints stuff into it, and exits (because I do not close(HHH)). However, if I uncomment line Mail::Mailer, the parent all of a sudden would sit and wait for the child to exit, as if I called close(HHH). Would anyone please explain it to me. I already posted a message like that one before and did not get any response. Please tell me if you you know the mailing list where I would get a response for the problem like that one. Thanks you in advance, --Max -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]