good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
the sub-process wont exit until the parent doesby sleepy_11 (Initiate) |
on Mar 02, 2017 at 12:04 UTC ( [id://1183402]=perlquestion: print w/replies, xml ) | Need Help?? |
sleepy_11 has asked for the wisdom of the Perl Monks concerning the following question: Perl 5.10.1 on CentOS 6.8 First official project on Perl and get a issue with Perl fork. The parent process is a daemon and it folks child process and end it after the task is done. But the reality is the child process won't quit. Since with Moose, totally 3 pieces of code. The expected result is the Kitty object will quit right after the PapaCat process calls the close to kill it. Below is the demo code:pipe_test.pl
PapaCat.pm
Kitty.pm
Back to
Seekers of Perl Wisdom
|
|